@@ -69,6 +69,7 @@ def test_ndframe_tests(self):
69
69
],
70
70
'pandas.core.generic.NDFrame.fillna' : [
71
71
"df.fillna(method='ffill')" ,
72
+ 'df.fillna(method="ffill")' ,
72
73
'df.fillna(value=values, limit=1)' ,
73
74
],
74
75
'pandas.core.generic.NDFrame.sort_values' : ['*' ],
@@ -163,6 +164,7 @@ def test_dataframe_tests(self):
163
164
'pandas.core.frame.DataFrame.diff' : ['*' ],
164
165
'pandas.core.frame.DataFrame.fillna' : [
165
166
"df.fillna(method='ffill')" ,
167
+ 'df.fillna(method="ffill")' ,
166
168
'df.fillna(value=values, limit=1)' ,
167
169
],
168
170
'pandas.core.frame.DataFrame.items' : ['*' ],
@@ -235,13 +237,18 @@ def test_dataframe_tests(self):
235
237
# reindex not supported
236
238
's2 = s.reindex([1, 0, 2, 3])' ,
237
239
],
240
+ 'pandas.core.frame.DataFrame.reindex' : ['*' ],
241
+ 'pandas.core.frame.DataFrame.resample' : ['*' ],
242
+ 'pandas.core.frame.DataFrame.values' : ['*' ],
238
243
},
239
244
not_implemented_ok = {
240
245
'pandas.core.frame.DataFrame.transform' : [
241
246
# str arg not supported. Tested with np.sum in
242
247
# frames_test.py::DeferredFrameTest::test_groupby_transform_sum
243
248
"df.groupby('Date')['Data'].transform('sum')" ,
244
249
],
250
+ 'pandas.core.frame.DataFrame.swaplevel' : ['*' ],
251
+ 'pandas.core.frame.DataFrame.melt' : ['*' ],
245
252
'pandas.core.frame.DataFrame.reindex_axis' : ['*' ],
246
253
'pandas.core.frame.DataFrame.round' : [
247
254
'df.round(decimals)' ,
@@ -272,6 +279,8 @@ def test_dataframe_tests(self):
272
279
'df.dot(s2)' ,
273
280
],
274
281
282
+ 'pandas.core.frame.DataFrame.resample' : ['df' ],
283
+ 'pandas.core.frame.DataFrame.asfreq' : ['*' ],
275
284
# Throws NotImplementedError when modifying df
276
285
'pandas.core.frame.DataFrame.axes' : [
277
286
# Returns deferred index.
@@ -384,6 +393,7 @@ def test_series_tests(self):
384
393
],
385
394
'pandas.core.series.Series.fillna' : [
386
395
"df.fillna(method='ffill')" ,
396
+ 'df.fillna(method="ffill")' ,
387
397
'df.fillna(value=values, limit=1)' ,
388
398
],
389
399
'pandas.core.series.Series.items' : ['*' ],
@@ -432,10 +442,10 @@ def test_series_tests(self):
432
442
's.drop_duplicates()' ,
433
443
"s.drop_duplicates(keep='last')" ,
434
444
],
435
- 'pandas.core.series.Series.repeat' : [
436
- 's.repeat([1, 2, 3])'
437
- ],
438
445
'pandas.core.series.Series.reindex' : ['*' ],
446
+ 'pandas.core.series.Series.repeat' : ['s.repeat([1, 2, 3])' ],
447
+ 'pandas.core.series.Series.resample' : ['*' ],
448
+ 'pandas.core.series.Series' : ['ser.iloc[0] = 999' ],
439
449
},
440
450
not_implemented_ok = {
441
451
'pandas.core.series.Series.transform' : [
@@ -450,13 +460,16 @@ def test_series_tests(self):
450
460
],
451
461
},
452
462
skip = {
463
+ # Relies on setting values with iloc
464
+ 'pandas.core.series.Series' : ['ser' , 'r' ],
453
465
'pandas.core.series.Series.groupby' : [
454
466
# TODO(BEAM-11393): This example requires aligning two series
455
467
# with non-unique indexes. It only works in pandas because
456
468
# pandas can recognize the indexes are identical and elide the
457
469
# alignment.
458
470
'ser.groupby(ser > 100).mean()' ,
459
471
],
472
+ 'pandas.core.series.Series.asfreq' : ['*' ],
460
473
# error formatting
461
474
'pandas.core.series.Series.append' : [
462
475
's1.append(s2, verify_integrity=True)' ,
@@ -490,6 +503,7 @@ def test_series_tests(self):
490
503
# Inspection after modification.
491
504
's'
492
505
],
506
+ 'pandas.core.series.Series.resample' : ['df' ],
493
507
})
494
508
self .assertEqual (result .failed , 0 )
495
509
@@ -668,10 +682,12 @@ def test_groupby_tests(self):
668
682
'pandas.core.groupby.generic.DataFrameGroupBy.hist' : ['*' ],
669
683
'pandas.core.groupby.generic.DataFrameGroupBy.fillna' : [
670
684
"df.fillna(method='ffill')" ,
685
+ 'df.fillna(method="ffill")' ,
671
686
'df.fillna(value=values, limit=1)' ,
672
687
],
673
688
'pandas.core.groupby.generic.SeriesGroupBy.fillna' : [
674
689
"df.fillna(method='ffill')" ,
690
+ 'df.fillna(method="ffill")' ,
675
691
'df.fillna(value=values, limit=1)' ,
676
692
],
677
693
},
0 commit comments