I would like to read the CSV file with (headers: true option), but the first 5 lines of my file contain unwanted data. So I want line 6 to be the header and start reading the file with line 6.
But when I read the file CSV.readlines("my_file.csv", headers: true).drop(5), it still uses line 1 as the header. How to set line 6 as title?
source
share