Skip to content

Commit 53f0d0c

Browse files
committed
replace append
1 parent fab4c62 commit 53f0d0c

File tree

1 file changed

+8
-8
lines changed

1 file changed

+8
-8
lines changed

_delphi_utils_python/tests/test_export.py

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -250,15 +250,15 @@ def test_export_with_null_removal(self):
250250
"""Test that `remove_null_samples = True` removes entries with null samples."""
251251
_clean_directory(self.TEST_DIR)
252252

253-
df_with_nulls = self.DF.copy().append(
254-
{
253+
df_with_nulls = pd.concat(
254+
[self.DF.copy(),
255+
pd.DataFrame({
255256
"geo_id": "66666",
256257
"timestamp": datetime(2020, 6, 6),
257258
"val": 10,
258259
"se": 0.2,
259260
"sample_size": pd.NA,
260-
},
261-
ignore_index=True,
261+
}, index = [0])]
262262
)
263263

264264
create_export_csv(
@@ -283,15 +283,15 @@ def test_export_without_null_removal(self):
283283
"""Test that `remove_null_samples = False` does not remove entries with null samples."""
284284
_clean_directory(self.TEST_DIR)
285285

286-
df_with_nulls = self.DF.copy().append(
287-
{
286+
df_with_nulls = pd.concat(
287+
[self.DF.copy(),
288+
pd.DataFrame({
288289
"geo_id": "66666",
289290
"timestamp": datetime(2020, 6, 6),
290291
"val": 10,
291292
"se": 0.2,
292293
"sample_size": pd.NA,
293-
},
294-
ignore_index=True,
294+
}, index = [0])]
295295
)
296296

297297
create_export_csv(

0 commit comments

Comments
 (0)