Horje
Returns a DataFrame representing the result of the given query Code Example
Returns a DataFrame representing the result of the given query
# Returns a DataFrame representing the result of the given query

df.createOrReplaceTempView("table1")
df2 = spark.sql("SELECT field1 AS f1, field2 as f2 from table1")
df2.collect()
# [Row(f1=1, f2='row1'), Row(f1=2, f2='row2'), Row(f1=3, f2='row3')]




Python

Related
python export 16 bit tiff Code Example python export 16 bit tiff Code Example
python ctypes maximize window Code Example python ctypes maximize window Code Example
Push to pypi Code Example Push to pypi Code Example
signup class Code Example signup class Code Example
check pd.NaT python Code Example check pd.NaT python Code Example

Type:
Code Example
Category:
Coding
Sub Category:
Code Example
Uploaded by:
Admin
Views:
7