text_plain_output_1.png
from pyspark.sql import SparkSession

from pyspark.sql import SparkSession
my_spark = SparkSession.builder.getOrCreate()

file_path = '../input/flights.csv'
flights = my_spark.read.csv(file_path, header=True)
flights.show()
print(my_spark.catalog.listTables())
flights.createOrReplaceTempView('flights')
print(my_spark.catalog.listTables())