Relative Content

Tag Archive for pythonpython-3.xcsvinputoperating-system

hp laptop does not recognize delimiter when reading csv files

I simply want to read in a csv file like this.
import pandas as pd df = pd.read_csv('file_path', sep='t')
I checked several times that the data in the csv file is indeed separated by tabs.
There are 77 headers and 2000 rows of data so I would expect a dataframe with 77 columns. However, with this code I always get just one column, as the separator is not recognized.