Skip to content

Commit

Permalink
Fix pandas-dev#16583 by filtering irrelevant arguments
Browse files Browse the repository at this point in the history
kwargs which are meant for the opening of the HDFStore should be filtered
out before passing the remaining kwargs to the function which loads the data.
  • Loading branch information
frexvahi committed Jun 6, 2017
1 parent 4f68f93 commit 58176d6
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions pandas/io/pytables.py
Original file line number Diff line number Diff line change
Expand Up @@ -348,6 +348,10 @@ def read_hdf(path_or_buf, key=None, **kwargs):
# so delegate to the iterator
auto_close = True

# Remove kwargs which are only relevant for the HDFStore (see GH#16583)
for arg in ('mode', 'complib', 'complevel', 'fletcher32'):
kwargs.pop(arg, None)

try:
if key is None:
groups = store.groups()
Expand Down

0 comments on commit 58176d6

Please sign in to comment.