From 935753a2efbb414c8e2ab4344f43a5ff6d54316a Mon Sep 17 00:00:00 2001 From: Erwan Pannier Date: Tue, 31 Dec 2024 23:23:19 +0100 Subject: [PATCH] fixed deprecation of pandas.Dataframe.append --- ctwrap/output.py | 2 +- environment.yml | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/ctwrap/output.py b/ctwrap/output.py index 459ccdf..e310d3d 100644 --- a/ctwrap/output.py +++ b/ctwrap/output.py @@ -236,7 +236,7 @@ def save(self, data, entry, variation=None, mode=None, errored=False): df = pd.read_csv(fname) else: df = pd.DataFrame(columns=row.keys()) - df = df.append(row, ignore_index=True) + df = pd.concat([df, row], ignore_index=True) df.to_csv(fname, index=False) def dir(self): diff --git a/environment.yml b/environment.yml index 213a8a6..c659baa 100644 --- a/environment.yml +++ b/environment.yml @@ -10,7 +10,7 @@ dependencies: - h5py - pint - ruamel.yaml>=0.17.0 - - pandas + - pandas>=1.4 - cantera - setuptools - pytest