Store object in HDFStore.
This method writes a pandas DataFrame or Series into an HDF5 file using either the fixed or table format. The table format allows additional operations like incremental appends and queries but may have performance trade-offs. The fixed format provides faster read/write operations but does not support appends or queries.
Key of object to store in file.
Value of object to store in file.
Format to use when storing object in HDFStore. Value can be one of:
'fixed'
Fixed format. Fast writing/reading. Not-appendable, nor searchable.
'table'
Table format. Write as a PyTables Table structure which may perform worse but allow more flexible operations like searching / selecting subsets of the data.
Write DataFrame index as a column.
This will force Table format, append the input data to the existing.
This parameter is currently not accepted.
Specifies a compression level for data. A value of 0 or None disables compression.
Dict of columns that specify minimum str sizes.
Str to use as str nan representation.
List of columns to create as data columns, or True to use all columns. See here.
Provide an encoding for strings.
The error handling scheme to use for encoding errors. The default is âstrictâ meaning that encoding errors raise a UnicodeEncodeError. Other possible values are âignoreâ, âreplaceâ and âxmlcharrefreplaceâ as well as any other name registered with codecs.register_error that can handle UnicodeEncodeErrors.
Parameter is propagated to âcreate_tableâ method of âPyTablesâ. If set to False it enables to have the same h5 files (same hashes) independent on creation time.
Remove missing values.
See also
HDFStore.info
Prints detailed information on the store.
HDFStore.get_storer
Returns the storer object for a key.
Examples
>>> df = pd.DataFrame([[1, 2], [3, 4]], columns=["A", "B"]) >>> store = pd.HDFStore("store.h5", "w") >>> store.put("data", df)
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