fixed: Starting with pandas version 3.0 all arguments of to_hdf except for the argument 'path_or_buf' will be keyword-only
This commit is contained in:
@@ -41,7 +41,7 @@ def dump_non_empty_df(df, fn, key="data"):
|
|||||||
print("<<< skip dumping empty dataframe")
|
print("<<< skip dumping empty dataframe")
|
||||||
return
|
return
|
||||||
print(f"<<< dump dataframe to {fn}")
|
print(f"<<< dump dataframe to {fn}")
|
||||||
df.to_hdf(fn, key)
|
df.to_hdf(fn, key=key)
|
||||||
backup(df, fn, key) #TODO: test then remove
|
backup(df, fn, key) #TODO: test then remove
|
||||||
|
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user