From 36b941e336da7364d9bbd040cbc8edbcfdfdc85f Mon Sep 17 00:00:00 2001 From: Bart Broere Date: Wed, 11 Oct 2023 16:41:05 +0200 Subject: [PATCH] Use _append instead of append since it's still available after 2.0 of pandas (#603) --- tests/etl/test_pandas_to_eland.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/tests/etl/test_pandas_to_eland.py b/tests/etl/test_pandas_to_eland.py index 7c1c30c..793bfa8 100644 --- a/tests/etl/test_pandas_to_eland.py +++ b/tests/etl/test_pandas_to_eland.py @@ -134,7 +134,8 @@ class TestPandasToEland: # Assert that the second pandas dataframe is actually appended assert df2.shape == (6, 4) - pd_df3 = pd_df.append(pd_df2) + # use the "private" append method that's still available in pandas 2.0 + pd_df3 = pd_df._append(pd_df2) assert_pandas_eland_frame_equal(pd_df3, df2) def test_es_if_exists_append_mapping_mismatch_schema_enforcement(self):