Skip to content
Prev Previous commit
Next Next commit
Update readers.py
  • Loading branch information
lithomas1 authored Jul 29, 2021
commit 50067793677bc957266b2a154636325e59ad3838
2 changes: 1 addition & 1 deletion pandas/io/parsers/readers.py
Original file line number Diff line number Diff line change
Expand Up @@ -1302,7 +1302,7 @@ def _refine_defaults_read(
if delimiter and (sep is not lib.no_default):
raise ValueError("Specified a sep and a delimiter; you can only specify one.")

allowed_names_prefix = {None, lib.no_default}
allowed_names_prefix = [None, lib.no_default]
if names not in allowed_names_prefix and prefix not in allowed_names_prefix:
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This won't work with lists

raise ValueError("Specified named and prefix; you can only specify one.")

Expand Down