@@ -479,8 +479,8 @@ def test_describe_categorical(self):
479
479
480
480
cat = Series (Categorical (["a" , "b" , "c" , "c" ]))
481
481
df3 = DataFrame ({"cat" : cat , "s" : ["a" , "b" , "c" , "c" ]})
482
- res = df3 .describe ()
483
- tm .assert_numpy_array_equal (res ["cat" ].values , res ["s" ].values )
482
+ result = df3 .describe ()
483
+ tm .assert_numpy_array_equal (result ["cat" ].values , result ["s" ].values )
484
484
485
485
def test_describe_categorical_columns (self ):
486
486
# GH 11558
@@ -551,8 +551,8 @@ def test_describe_timedelta_values(self):
551
551
index = ['count' , 'mean' , 'std' , 'min' , '25%' ,
552
552
'50%' , '75%' , 'max' ])
553
553
554
- res = df .describe ()
555
- tm .assert_frame_equal (res , expected )
554
+ result = df .describe ()
555
+ tm .assert_frame_equal (result , expected )
556
556
557
557
exp_repr = (" t1 t2\n "
558
558
"count 5 5\n "
@@ -563,7 +563,7 @@ def test_describe_timedelta_values(self):
563
563
"50% 3 days 00:00:00 0 days 03:00:00\n "
564
564
"75% 4 days 00:00:00 0 days 04:00:00\n "
565
565
"max 5 days 00:00:00 0 days 05:00:00" )
566
- assert repr (res ) == exp_repr
566
+ assert repr (result ) == exp_repr
567
567
568
568
def test_describe_tz_values (self , tz_naive_fixture ):
569
569
# GH 21332
@@ -584,8 +584,8 @@ def test_describe_tz_values(self, tz_naive_fixture):
584
584
'last' , 'mean' , 'std' , 'min' , '25%' , '50%' ,
585
585
'75%' , 'max' ]
586
586
)
587
- res = df .describe (include = 'all' )
588
- tm .assert_frame_equal (res , expected )
587
+ result = df .describe (include = 'all' )
588
+ tm .assert_frame_equal (result , expected )
589
589
590
590
def test_reduce_mixed_frame (self ):
591
591
# GH 6806
@@ -1202,7 +1202,6 @@ def test_stats_mixed_type(self, float_string_frame):
1202
1202
float_string_frame .mean (1 )
1203
1203
float_string_frame .skew (1 )
1204
1204
1205
-
1206
1205
# TODO: Ensure warning isn't emitted in the first place
1207
1206
@pytest .mark .filterwarnings ("ignore:All-NaN:RuntimeWarning" )
1208
1207
def test_median_corner (self , int_frame , float_frame , float_string_frame ):
0 commit comments