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:
@ -59,7 +59,7 @@ def backup(df, fn, key):
|
||||
Path(BAKDIR).mkdir(parents=True, exist_ok=True)
|
||||
bfn = backup_filename(fn)
|
||||
print(f"<<< backup dataframe to {bfn}")
|
||||
df.to_hdf(bfn, key)
|
||||
df.to_hdf(bfn, key=key)
|
||||
|
||||
def backup_filename(fn):
|
||||
p = Path(fn)
|
||||
|
Reference in New Issue
Block a user