You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
In [9]: data
Out[9]: 'header1,header2\n'
In [10]: read_csv(StringIO(data),iterator=True,index_col=False).read()
TypeError: object of type 'bool' has no len()
The text was updated successfully, but these errors were encountered:
I'm having the same issue with version 0.16.2. When reading a csv file that contains only headers (no data), for example:
first row: company;supplier;amount
And using pandas read_csv function to read the file (delimiter=";"; skiprows=0) df = pd.read_csv(file, sep=delimiter, engine="c", quotechar='"', quoting=quote, skipinitialspace=True, skiprows=skiprows, prefix="NX", encoding="ISO-8859-1", error_bad_lines=False, index_col=False)
It returns the following error:
TypeError: object of type 'bool' has no len()
Removing the option index_col=False it starts working: df = pd.read_csv(file, sep=delimiter, engine="c", quotechar='"', quoting=quote, skipinitialspace=True, skiprows=skiprows, prefix="NX", encoding="ISO-8859-1", error_bad_lines=False)
after this fix #10302
The following is failing (as
index_col
isNone
)The text was updated successfully, but these errors were encountered: