From fa64be0f8cf9b032865f09335c62ba156d853649 Mon Sep 17 00:00:00 2001 From: Alec Currie <55813947+alecfcurrie@users.noreply.github.com> Date: Thu, 4 Apr 2024 15:06:53 -0700 Subject: [PATCH] Updated helpers.py Changed "changed_cols_df.append()" to "pd.concat()" since append is deprecated. --- src/helpers.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/helpers.py b/src/helpers.py index f7c2e28..110ad4d 100644 --- a/src/helpers.py +++ b/src/helpers.py @@ -205,7 +205,7 @@ def schema_rename_and_drop_columns(df, rename_dict, schema_file, drop_rest=False axis=1) if has_dropped & drop_rest: - changed_cols_df = changed_cols_df.append(dropped_df, ignore_index=True) + changed_cols_df = pd.concat([changed_cols_df, dropped_df], ignore_index=True) try: changed_cols_df = changed_cols_df.merge(schema_df, how="left", left_on="original", right_on="name")