Read a CSV file into a DataFrame
Create DataFrame from list or RDD
Display rows of DataFrame
Load CSV file into DataFrame
spark.read.csv()
Read external CSV files as distributed DataFrames.
Read CSV with headers
df = spark.read.csv("file.csv", header=True, inferSchema=True)
Print schema of DataFrame
Select specific columns from DataFrame
Filter DataFrame based on condition