I want to take this .dat file: Airline list and convert it into a readable CSV file. However, for some reason each time I do this:
df = pd.read_csv('/path/airlines.dat', sep='\s+', header=None, skiprows=1)
I get the following error:
ParserError: Error tokenizing data. C error: Expected 2 fields in line 3, saw 3
Am I correctly reading this file? What am I doing wrong?
sep=','...