@@ -480,8 +480,8 @@ def test_describe_categorical(self):
480
480
481
481
cat = Series (Categorical (["a" , "b" , "c" , "c" ]))
482
482
df3 = DataFrame ({"cat" : cat , "s" : ["a" , "b" , "c" , "c" ]})
483
- res = df3 .describe ()
484
- tm .assert_numpy_array_equal (res ["cat" ].values , res ["s" ].values )
483
+ result = df3 .describe ()
484
+ tm .assert_numpy_array_equal (result ["cat" ].values , result ["s" ].values )
485
485
486
486
def test_describe_categorical_columns (self ):
487
487
# GH 11558
@@ -552,8 +552,8 @@ def test_describe_timedelta_values(self):
552
552
index = ['count' , 'mean' , 'std' , 'min' , '25%' ,
553
553
'50%' , '75%' , 'max' ])
554
554
555
- res = df .describe ()
556
- tm .assert_frame_equal (res , expected )
555
+ result = df .describe ()
556
+ tm .assert_frame_equal (result , expected )
557
557
558
558
exp_repr = (" t1 t2\n "
559
559
"count 5 5\n "
@@ -564,7 +564,7 @@ def test_describe_timedelta_values(self):
564
564
"50% 3 days 00:00:00 0 days 03:00:00\n "
565
565
"75% 4 days 00:00:00 0 days 04:00:00\n "
566
566
"max 5 days 00:00:00 0 days 05:00:00" )
567
- assert repr (res ) == exp_repr
567
+ assert repr (result ) == exp_repr
568
568
569
569
def test_describe_tz_values (self , tz_naive_fixture ):
570
570
# GH 21332
@@ -585,8 +585,8 @@ def test_describe_tz_values(self, tz_naive_fixture):
585
585
'last' , 'mean' , 'std' , 'min' , '25%' , '50%' ,
586
586
'75%' , 'max' ]
587
587
)
588
- res = df .describe (include = 'all' )
589
- tm .assert_frame_equal (res , expected )
588
+ result = df .describe (include = 'all' )
589
+ tm .assert_frame_equal (result , expected )
590
590
591
591
def test_reduce_mixed_frame (self ):
592
592
# GH 6806
0 commit comments