Skip to content

Commit 3ba4e3a

Browse files
committed
corrections after rebasing
1 parent c43a029 commit 3ba4e3a

File tree

1 file changed

+2
-9
lines changed

1 file changed

+2
-9
lines changed

pandas/tests/series/test_analytics.py

+2-9
Original file line numberDiff line numberDiff line change
@@ -1063,10 +1063,9 @@ def test_rank_categorical(self):
10631063
# Test ascending/descending ranking for ordered categoricals
10641064
exp = pd.Series([1., 2., 3., 4., 5., 6.])
10651065
exp_desc = pd.Series([6., 5., 4., 3., 2., 1.])
1066-
ser = pd.Series(
1066+
ordered = pd.Series(
10671067
['first', 'second', 'third', 'fourth', 'fifth', 'sixth']
1068-
)
1069-
ordered = ser.astype('category', ).cat.set_categories(
1068+
).astype('category', ).cat.set_categories(
10701069
['first', 'second', 'third', 'fourth', 'fifth', 'sixth'],
10711070
ordered=True
10721071
)
@@ -1084,12 +1083,6 @@ def test_rank_categorical(self):
10841083
res = unordered.rank()
10851084
assert_series_equal(res, exp_unordered)
10861085

1087-
# Test na_option for rank data
1088-
na_ser = pd.Series(
1089-
['first', 'second', 'third', 'fourth', 'fifth', 'sixth', np.NaN],
1090-
).astype('category').cat.set_categories(
1091-
['first', 'second', 'third', 'fourth', 'fifth', 'sixth'],
1092-
10931086
# Test na_option for rank data
10941087
na_ser = pd.Series(
10951088
['first', 'second', 'third', 'fourth', 'fifth', 'sixth', np.NaN]

0 commit comments

Comments
 (0)