I am unable to find a solution for reading a CSV file which has a column name repeated twice but while reading the CSV file it's giving an error complaining duplicate column names
Is there a way to handle this in spark without altering the CSV file ?.
My CSV data looks like this delimited by Tab (\t) & some extra spaces in each column.
col1 col2 col3
2020 100 sometext