Suppose I have a file test.csv which looks like this:
A,B,C
Hello,Hi,1
I'm attempting to read this into a Pandas dataframe:
cols = ['A','B','C']
col_types = {'A': str, 'B': str, 'C': int}
test = pd.read_csv('test.csv', names=cols, dtype=col_types)
This produces the error
AttributeError: 'NoneType' object has no attribute 'dtype'
Any ideas?
0.16.1, might be no harm to update