Skip to content

Conversation

@lhoestq
Copy link
Member

@lhoestq lhoestq commented Jul 5, 2021

Workaround for this issue in pandas 1.3.0 : pandas-dev/pandas#42387

The csv reader raises an error:

/usr/local/lib/python3.7/dist-packages/pandas/io/parsers/readers.py in _refine_defaults_read(dialect, delimiter, delim_whitespace, engine, sep, error_bad_lines, warn_bad_lines, on_bad_lines, names, prefix, defaults)
   1304 
   1305     if names is not lib.no_default and prefix is not lib.no_default:
-> 1306         raise ValueError("Specified named and prefix; you can only specify one.")
   1307 
   1308     kwds["names"] = None if names is lib.no_default else names

ValueError: Specified named and prefix; you can only specify one.

@lhoestq lhoestq merged commit b7eb3d1 into master Jul 5, 2021
@lhoestq lhoestq deleted the support-pandas-1.3.0-read_csv branch July 5, 2021 17:14
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants