We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 3a94c7f commit 94893f0Copy full SHA for 94893f0
pandas/core/generic.py
@@ -9286,7 +9286,7 @@ def ranker(blk_values):
9286
pct=pct,
9287
)
9288
else:
9289
- if blk_values.ndim > 1 and axis_int == 0:
+ if axis_int == 0:
9290
ranks = algos.rank(
9291
blk_values.T,
9292
axis=axis_int,
@@ -9317,7 +9317,7 @@ def ranker(blk_values):
9317
9318
data = self
9319
9320
- should_transpose = data.ndim > 1 and axis_int == 1
+ should_transpose = axis_int == 1
9321
9322
if should_transpose:
9323
data = data.T
0 commit comments