@@ -3897,7 +3897,7 @@ def rename(
3897
3897
columns : dict-like or function
3898
3898
Alternative to specifying axis (``mapper, axis=1``
3899
3899
is equivalent to ``columns=mapper``).
3900
- axis : int or str
3900
+ axis : {0 or 'index', 1 or 'columns'}, default 0
3901
3901
Axis to target with ``mapper``. Can be either the axis name
3902
3902
('index', 'columns') or number (0, 1). The default is 'index'.
3903
3903
copy : bool, default True
@@ -5260,6 +5260,9 @@ def swaplevel(self, i=-2, j=-1, axis=0) -> "DataFrame":
5260
5260
----------
5261
5261
i, j : int or str
5262
5262
Levels of the indices to be swapped. Can pass level name as string.
5263
+ axis : {0 or 'index', 1 or 'columns'}, default 0
5264
+ The axis to swap levels on. 0 or 'index' for row-wise, 1 or
5265
+ 'columns' for column-wise.
5263
5266
5264
5267
Returns
5265
5268
-------
@@ -5289,7 +5292,7 @@ def reorder_levels(self, order, axis=0) -> "DataFrame":
5289
5292
order : list of int or list of str
5290
5293
List representing new level order. Reference level by number
5291
5294
(position) or by key (label).
5292
- axis : int
5295
+ axis : {0 or 'index', 1 or 'columns'}, default 0
5293
5296
Where to reorder levels.
5294
5297
5295
5298
Returns
@@ -7783,7 +7786,7 @@ def count(self, axis=0, level=None, numeric_only=False):
7783
7786
----------
7784
7787
axis : {0 or 'index', 1 or 'columns'}, default 0
7785
7788
If 0 or 'index' counts are generated for each column.
7786
- If 1 or 'columns' counts are generated for each ** row** .
7789
+ If 1 or 'columns' counts are generated for each row.
7787
7790
level : int or str, optional
7788
7791
If the axis is a `MultiIndex` (hierarchical), count along a
7789
7792
particular `level`, collapsing into a `DataFrame`.
@@ -8341,7 +8344,7 @@ def quantile(self, q=0.5, axis=0, numeric_only=True, interpolation="linear"):
8341
8344
----------
8342
8345
q : float or array-like, default 0.5 (50% quantile)
8343
8346
Value between 0 <= q <= 1, the quantile(s) to compute.
8344
- axis : {0, 1, 'index', 'columns'} ( default 0)
8347
+ axis : {0, 1, 'index', 'columns'}, default 0
8345
8348
Equals 0 or 'index' for row-wise, 1 or 'columns' for column-wise.
8346
8349
numeric_only : bool, default True
8347
8350
If False, the quantile of datetime and timedelta data will be
0 commit comments