Explain the syntax for creating a Spark DataFrame from a CSV file in Python
To create a data frame from a CSV file in Python, you can use the following syntax:
python df = spark.read.csv("file.csv", header=True, inferSchema=True)
