pyspark.sql.SQLContext.registerDataFrameAsTable#
- SQLContext.registerDataFrameAsTable(df, tableName)[source]#
Registers the given
DataFrameas a temporary table in the catalog.Temporary tables exist only during the lifetime of this instance of
SQLContext.Added in version 1.3.0.
Examples
>>> sqlContext.registerDataFrameAsTable(df, "table1")