I have a csv having data as
Date, Time, CO(GT), PT08.S1(CO)
10/03/2004, 18.00.00, 2, 6
I am parsing it for creating DataSet and would like to skip first line. How can I do it?
I have a csv having data as
Date, Time, CO(GT), PT08.S1(CO)
10/03/2004, 18.00.00, 2, 6
I am parsing it for creating DataSet and would like to skip first line. How can I do it?
Use the header option of the DataFrameReader
, for example like this in Java:
Daset<Row> df = spark
.read()
.option("inferSchema", true)
.option("header", true)
.csv(paths);