Skip to content

Commit 75b45e0

Browse files
committed
Clean res/exp for frame/test_analytics.py
1 parent 56cddc0 commit 75b45e0

File tree

1 file changed

+7
-7
lines changed

1 file changed

+7
-7
lines changed

pandas/tests/frame/test_analytics.py

+7-7
Original file line numberDiff line numberDiff line change
@@ -480,8 +480,8 @@ def test_describe_categorical(self):
480480

481481
cat = Series(Categorical(["a", "b", "c", "c"]))
482482
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)
485485

486486
def test_describe_categorical_columns(self):
487487
# GH 11558
@@ -552,8 +552,8 @@ def test_describe_timedelta_values(self):
552552
index=['count', 'mean', 'std', 'min', '25%',
553553
'50%', '75%', 'max'])
554554

555-
res = df.describe()
556-
tm.assert_frame_equal(res, expected)
555+
result = df.describe()
556+
tm.assert_frame_equal(result, expected)
557557

558558
exp_repr = (" t1 t2\n"
559559
"count 5 5\n"
@@ -564,7 +564,7 @@ def test_describe_timedelta_values(self):
564564
"50% 3 days 00:00:00 0 days 03:00:00\n"
565565
"75% 4 days 00:00:00 0 days 04:00:00\n"
566566
"max 5 days 00:00:00 0 days 05:00:00")
567-
assert repr(res) == exp_repr
567+
assert repr(result) == exp_repr
568568

569569
def test_describe_tz_values(self, tz_naive_fixture):
570570
# GH 21332
@@ -585,8 +585,8 @@ def test_describe_tz_values(self, tz_naive_fixture):
585585
'last', 'mean', 'std', 'min', '25%', '50%',
586586
'75%', 'max']
587587
)
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)
590590

591591
def test_reduce_mixed_frame(self):
592592
# GH 6806

0 commit comments

Comments
 (0)