Skip to content

Commit

Permalink
BUG: closes issue pandas-dev#7212 - read_hdf modifying passed columns…
Browse files Browse the repository at this point in the history
… list

parameter when multi-indexed
  • Loading branch information
ajamian committed May 3, 2015
1 parent b7c3271 commit de823fb
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion pandas/io/pytables.py
Original file line number Diff line number Diff line change
Expand Up @@ -4022,7 +4022,11 @@ def read(self, where=None, columns=None, **kwargs):
df = concat(frames, axis=1, verify_integrity=False).consolidate()

# apply the selection filters & axis orderings
df = self.process_axes(df, columns=columns)
if type(columns) is list:
columns_new = list(columns)
else:
columns_new = columns
df = self.process_axes(df, columns=columns_new)

return df

Expand Down

0 comments on commit de823fb

Please sign in to comment.