Skip to content

Commit

Permalink
change position of the raise
Browse files Browse the repository at this point in the history
  • Loading branch information
rushabh-v committed Jan 31, 2020
1 parent 13d8644 commit a003c51
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions pandas/io/parsers.py
Original file line number Diff line number Diff line change
Expand Up @@ -1888,6 +1888,10 @@ def __init__(self, src, **kwds):
if self._reader.header is None:
self.names = None
else:
if self.prefix:
raise ValueError(
"Argument prefix must be None if argument header is not None"
)
if len(self._reader.header) > 1:
# we have a multi index in the columns
(
Expand All @@ -1908,10 +1912,6 @@ def __init__(self, src, **kwds):
]
else:
self.names = list(range(self._reader.table_width))
elif self.prefix:
raise ValueError(
"Argument prefix must be None if argument header is not None"
)

# gh-9755
#
Expand Down

0 comments on commit a003c51

Please sign in to comment.