Panda data read_csv returns 'TextFileReader' object

Kurt kplunt at gmail.com
Fri Apr 24 22:04:48 CEST 2015


Isn't the call pd.read_csv(filepath,...) suppose to return a dataframe, not this other object? I keep getting the following error when I try to view the attribute head.

AttributeError: 'TextFileReader' object has no attribute 'head'

I reference pandas as pd and df is suppose to define itself. I had this working at one time.



More information about the Python-list mailing list