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:
2025-06-24 18:49:33 +02:00
parent f10b56df15
commit e83749ba9a

View File

@@ -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