File tree Expand file tree Collapse file tree 1 file changed +8
-8
lines changed
_delphi_utils_python/tests Expand file tree Collapse file tree 1 file changed +8
-8
lines changed Original file line number Diff line number Diff line change @@ -250,15 +250,15 @@ def test_export_with_null_removal(self):
250
250
"""Test that `remove_null_samples = True` removes entries with null samples."""
251
251
_clean_directory (self .TEST_DIR )
252
252
253
- df_with_nulls = self .DF .copy ().append (
254
- {
253
+ df_with_nulls = pd .concat (
254
+ [self .DF .copy (),
255
+ pd .DataFrame ({
255
256
"geo_id" : "66666" ,
256
257
"timestamp" : datetime (2020 , 6 , 6 ),
257
258
"val" : 10 ,
258
259
"se" : 0.2 ,
259
260
"sample_size" : pd .NA ,
260
- },
261
- ignore_index = True ,
261
+ }, index = [0 ])]
262
262
)
263
263
264
264
create_export_csv (
@@ -283,15 +283,15 @@ def test_export_without_null_removal(self):
283
283
"""Test that `remove_null_samples = False` does not remove entries with null samples."""
284
284
_clean_directory (self .TEST_DIR )
285
285
286
- df_with_nulls = self .DF .copy ().append (
287
- {
286
+ df_with_nulls = pd .concat (
287
+ [self .DF .copy (),
288
+ pd .DataFrame ({
288
289
"geo_id" : "66666" ,
289
290
"timestamp" : datetime (2020 , 6 , 6 ),
290
291
"val" : 10 ,
291
292
"se" : 0.2 ,
292
293
"sample_size" : pd .NA ,
293
- },
294
- ignore_index = True ,
294
+ }, index = [0 ])]
295
295
)
296
296
297
297
create_export_csv (
You can’t perform that action at this time.
0 commit comments