@@ -396,28 +396,28 @@ def test_groupby_fill():
396396 )
397397 mdf = md .DataFrame (df1 , chunk_size = 3 )
398398
399- r = tile (getattr ( mdf .groupby (["one" , "two" ]), " ffill" ) ())
399+ r = tile (mdf .groupby (["one" , "two" ]). ffill ())
400400 assert r .op .output_types [0 ] == OutputType .dataframe
401401 assert r .shape == (len (df1 ), 1 )
402402 assert len (r .chunks ) == 3
403403 assert r .chunks [0 ].shape == (np .nan , 1 )
404404 assert r .dtypes .index .tolist () == ["three" ]
405405
406- r = tile (getattr ( mdf .groupby (["two" ]), " bfill" ) ())
406+ r = tile (mdf .groupby (["two" ]). bfill ())
407407 assert r .op .output_types [0 ] == OutputType .dataframe
408408 assert r .shape == (len (df1 ), 2 )
409409 assert len (r .chunks ) == 3
410410 assert r .chunks [0 ].shape == (np .nan , 2 )
411411 assert r .dtypes .index .tolist () == ["one" , "three" ]
412412
413- r = tile (getattr ( mdf .groupby (["two" ]), " backfill" ) ())
413+ r = tile (mdf .groupby (["two" ]). backfill ())
414414 assert r .op .output_types [0 ] == OutputType .dataframe
415415 assert r .shape == (len (df1 ), 2 )
416416 assert len (r .chunks ) == 3
417417 assert r .chunks [0 ].shape == (np .nan , 2 )
418418 assert r .dtypes .index .tolist () == ["one" , "three" ]
419419
420- r = tile (getattr ( mdf .groupby (["one" ]), " fillna" ) (5 ))
420+ r = tile (mdf .groupby (["one" ]). fillna (5 ))
421421 assert r .op .output_types [0 ] == OutputType .dataframe
422422 assert r .shape == (len (df1 ), 2 )
423423 assert len (r .chunks ) == 3
@@ -426,25 +426,25 @@ def test_groupby_fill():
426426
427427 s1 = pd .Series ([4 , 3 , 9 , np .nan , np .nan , 7 , 10 , 8 , 1 , 6 ])
428428 ms1 = md .Series (s1 , chunk_size = 3 )
429- r = tile (getattr ( ms1 .groupby (lambda x : x % 2 ), " ffill" ) ())
429+ r = tile (ms1 .groupby (lambda x : x % 2 ). ffill ())
430430 assert r .op .output_types [0 ] == OutputType .series
431431 assert len (r .chunks ) == 4
432432 assert r .shape == (len (s1 ),)
433433 assert r .chunks [0 ].shape == (np .nan ,)
434434
435- r = tile (getattr ( ms1 .groupby (lambda x : x % 2 ), " bfill" ) ())
435+ r = tile (ms1 .groupby (lambda x : x % 2 ). bfill ())
436436 assert r .op .output_types [0 ] == OutputType .series
437437 assert len (r .chunks ) == 4
438438 assert r .shape == (len (s1 ),)
439439 assert r .chunks [0 ].shape == (np .nan ,)
440440
441- r = tile (getattr ( ms1 .groupby (lambda x : x % 2 ), " backfill" ) ())
441+ r = tile (ms1 .groupby (lambda x : x % 2 ). backfill ())
442442 assert r .op .output_types [0 ] == OutputType .series
443443 assert len (r .chunks ) == 4
444444 assert r .shape == (len (s1 ),)
445445 assert r .chunks [0 ].shape == (np .nan ,)
446446
447- r = tile (getattr ( ms1 .groupby (lambda x : x % 2 ), " fillna" ) (5 ))
447+ r = tile (ms1 .groupby (lambda x : x % 2 ). fillna (5 ))
448448 assert r .op .output_types [0 ] == OutputType .series
449449 assert len (r .chunks ) == 4
450450 assert r .shape == (len (s1 ),)
@@ -453,25 +453,25 @@ def test_groupby_fill():
453453 s1 = pd .Series ([4 , 3 , 9 , np .nan , np .nan , 7 , 10 , 8 , 1 , 6 ])
454454 ms1 = md .Series (s1 , chunk_size = 3 )
455455
456- r = tile (getattr ( ms1 .groupby (lambda x : x % 2 ), " ffill" ) ())
456+ r = tile (ms1 .groupby (lambda x : x % 2 ). ffill ())
457457 assert r .op .output_types [0 ] == OutputType .series
458458 assert len (r .chunks ) == 4
459459 assert r .shape == (len (s1 ),)
460460 assert r .chunks [0 ].shape == (np .nan ,)
461461
462- r = tile (getattr ( ms1 .groupby (lambda x : x % 2 ), " bfill" ) ())
462+ r = tile (ms1 .groupby (lambda x : x % 2 ). bfill ())
463463 assert r .op .output_types [0 ] == OutputType .series
464464 assert len (r .chunks ) == 4
465465 assert r .shape == (len (s1 ),)
466466 assert r .chunks [0 ].shape == (np .nan ,)
467467
468- r = tile (getattr ( ms1 .groupby (lambda x : x % 2 ), " backfill" ) ())
468+ r = tile (ms1 .groupby (lambda x : x % 2 ). backfill ())
469469 assert r .op .output_types [0 ] == OutputType .series
470470 assert len (r .chunks ) == 4
471471 assert r .shape == (len (s1 ),)
472472 assert r .chunks [0 ].shape == (np .nan ,)
473473
474- r = tile (getattr ( ms1 .groupby (lambda x : x % 2 ), " fillna" ) (5 ))
474+ r = tile (ms1 .groupby (lambda x : x % 2 ). fillna (5 ))
475475 assert r .op .output_types [0 ] == OutputType .series
476476 assert len (r .chunks ) == 4
477477 assert r .shape == (len (s1 ),)
0 commit comments