Series.to_hdf(path_or_buf, key, **kwargs)
[source]
Write the contained data to an HDF5 file using HDFStore.
Parameters: |
path_or_buf : the path (string) or HDFStore object key : string identifier for the group in the store mode : optional, {‘a’, ‘w’, ‘r+’}, default ‘a’
format : ‘fixed(f)|table(t)’, default is ‘fixed’
append : boolean, default False For Table formats, append the input data to the existing data_columns : list of columns, or True, default None List of columns to create as indexed data columns for on-disk queries, or True to use all columns. By default only the axes of the object are indexed. See here. Applicable only to format=’table’. complevel : int, 0-9, default None Specifies a compression level for data. A value of 0 disables compression. complib : {‘zlib’, ‘lzo’, ‘bzip2’, ‘blosc’}, default ‘zlib’ Specifies the compression library to be used. As of v0.20.2 these additional compressors for Blosc are supported (default if no compressor specified: ‘blosc:blosclz’): {‘blosc:blosclz’, ‘blosc:lz4’, ‘blosc:lz4hc’, ‘blosc:snappy’, ‘blosc:zlib’, ‘blosc:zstd’}. Specifying a compression library which is not available issues a ValueError. fletcher32 : bool, default False If applying compression use the fletcher32 checksum dropna : boolean, default False. If true, ALL nan rows will not be written to store. |
---|
© 2008–2012, AQR Capital Management, LLC, Lambda Foundry, Inc. and PyData Development Team
Licensed under the 3-clause BSD License.
http://pandas.pydata.org/pandas-docs/version/0.22.0/generated/pandas.Series.to_hdf.html