Command
spark.read.csv()Explanation
Read external CSV files as distributed DataFrames.
Examples
Read CSV with headers
df = spark.read.csv("file.csv", header=True, inferSchema=True)spark.read.csv()Read external CSV files as distributed DataFrames.
Read CSV with headers
df = spark.read.csv("file.csv", header=True, inferSchema=True)