Append to Table in file.
Node must already exist and be Table format.
Key of object to append.
Value of object to append.
Format to use when storing object in HDFStore. Value can be one of:
'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.
This parameter is currently not accepted.
Write DataFrame index as a column.
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.
This parameter is currently not accepted, try data_columns.
Dict of columns that specify minimum str sizes.
Str to use as str nan representation.
Size to chunk the writing.
Expected TOTAL row size of this table.
Do not write an ALL nan row to the store settable by the option âio.hdf.dropna_tableâ.
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.
Provide an encoding for str.
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.
See also
HDFStore.append_to_multiple
Append to multiple tables.
Notes
Does not check if data being appended overlaps with existing data in the table, so be careful
Examples
>>> df1 = pd.DataFrame([[1, 2], [3, 4]], columns=["A", "B"]) >>> store = pd.HDFStore("store.h5", "w") >>> store.put("data", df1, format="table") >>> df2 = pd.DataFrame([[5, 6], [7, 8]], columns=["A", "B"]) >>> store.append("data", df2) >>> store.close() A B 0 1 2 1 3 4 0 5 6 1 7 8
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