1. 首页
  2. 数据库
  3. 其它
  4. Spark SQL in Python

Spark SQL in Python

上传者: 2021-01-16 18:50:57上传 PDF文件 117.56KB 热度 27次
df = spark.read.csv(filename, header = True) #create SQL table and query it df.createOrReplaceTempView(schedule) spark.sql(select * from schedule where station = 'San Jose' ).show() #inspecting table schma result = spark.sql(show columns from tablename) result = spark.sql(select * from tab
用户评论