A RetroSearch Logo

Home - News ( United States | United Kingdom | Italy | Germany ) - Football scores

Search Query:

Showing content from https://github.com/pandas-dev/pandas/issues/9327 below:

read_hdf does not work with auto_close argument · Issue #9327 · pandas-dev/pandas · GitHub

When trying to create DataFrame from HDF Store with auto_close=True or False it breaks with error:

somedf = pd.DataFrame({'a':[1,2], 'b':[3,4]})
somedf.to_hdf('hdf_file', 'somekey', format='t', mode='w')
newdf = pd.read_hdf('hdf_file', 'somekey', auto_close=True)
newdf

error:

d:\Anaconda\envs\py2k\lib\site-packages\pandas\io\pytables.pyc in <lambda>(store, auto_close)
    303 
    304     f = lambda store, auto_close: store.select(
--> 305         key, auto_close=auto_close, **kwargs)
    306 
    307     if isinstance(path_or_buf, string_types):

TypeError: select() got multiple values for keyword argument 'auto_close'

The same without auto_close argument works fine:

newdf = pd.read_hdf('hdf_file', 'somekey')
newdf

yielding:

pandas 0.15.2, pytables 3.1.1 on Win8.1x64


RetroSearch is an open source project built by @garambo | Open a GitHub Issue

Search and Browse the WWW like it's 1997 | Search results from DuckDuckGo

HTML: 3.2 | Encoding: UTF-8 | Version: 0.7.4