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
Single-length lists are not a problem elsewhere in pandas or within read_csv. For example, passing index_col=[0] does not cause pandas to read a csv file incorrectly. Preferably pandas would read in the csv file correctly given a list of header rows with one element. Raising an error or warning would also be an improvement over the current functionality.
Code Sample
If test.csv file looks like:
Reading in the file with the header given in a list of length 0 results in no warnings or errors, but each line is interpreted as NaNs.
Problem description
Single-length lists are not a problem elsewhere in pandas or within read_csv. For example, passing
index_col=[0]
does not cause pandas to read a csv file incorrectly. Preferably pandas would read in the csv file correctly given a list of header rows with one element. Raising an error or warning would also be an improvement over the current functionality.Expected Output
Output of
pd.show_versions()
The text was updated successfully, but these errors were encountered: