Use _append instead of append since it's still available after 2.0 of pandas (#603)

This commit is contained in:
Bart Broere 2023-10-11 16:41:05 +02:00 committed by GitHub
parent 6a4fd511cc
commit 36b941e336
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

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