SparkSession.
table
Returns the specified table as a DataFrame.
DataFrame
Examples
>>> df.createOrReplaceTempView("table1") >>> df2 = spark.table("table1") >>> sorted(df.collect()) == sorted(df2.collect()) True
previous
pyspark.sql.SparkSession.streams
next
pyspark.sql.SparkSession.udf