@@ -2745,7 +2745,7 @@ def dropna(self, axis=0, how='any', thresh=None, subset=None,
2745
2745
2746
2746
Parameters
2747
2747
----------
2748
- axis : {0, 1}, or tuple/list thereof
2748
+ axis : {0 or 'index' , 1 or 'columns' }, or tuple/list thereof
2749
2749
Pass tuple or list to drop on multiple axes
2750
2750
how : {'any', 'all'}
2751
2751
* any : if any NA values are present, drop that label
@@ -2890,7 +2890,7 @@ def sort(self, columns=None, axis=0, ascending=True,
2890
2890
ascending : boolean or list, default True
2891
2891
Sort ascending vs. descending. Specify list for multiple sort
2892
2892
orders
2893
- axis : {0, 1}
2893
+ axis : {0 or 'index' , 1 or 'columns'}, default 0
2894
2894
Sort index/rows versus columns
2895
2895
inplace : boolean, default False
2896
2896
Sort the DataFrame without creating a new instance
@@ -2919,7 +2919,7 @@ def sort_index(self, axis=0, by=None, ascending=True, inplace=False,
2919
2919
2920
2920
Parameters
2921
2921
----------
2922
- axis : {0, 1}
2922
+ axis : {0 or 'index' , 1 or 'columns'}, default 0
2923
2923
Sort index/rows versus columns
2924
2924
by : object
2925
2925
Column name(s) in frame. Accepts a column name or a list
@@ -3027,7 +3027,7 @@ def sortlevel(self, level=0, axis=0, ascending=True,
3027
3027
Parameters
3028
3028
----------
3029
3029
level : int
3030
- axis : {0, 1}
3030
+ axis : {0 or 'index' , 1 or 'columns'}, default 0
3031
3031
ascending : boolean, default True
3032
3032
inplace : boolean, default False
3033
3033
Sort the DataFrame without creating a new instance
@@ -3639,9 +3639,9 @@ def apply(self, func, axis=0, broadcast=False, raw=False, reduce=None,
3639
3639
----------
3640
3640
func : function
3641
3641
Function to apply to each column/row
3642
- axis : {0, 1}
3643
- * 0 : apply function to each column
3644
- * 1 : apply function to each row
3642
+ axis : {0 or 'index' , 1 or 'columns'}, default 0
3643
+ * 0 or 'index' : apply function to each column
3644
+ * 1 or 'columns' : apply function to each row
3645
3645
broadcast : boolean, default False
3646
3646
For aggregation functions, return object of same size with values
3647
3647
propagated
@@ -4162,8 +4162,8 @@ def corrwith(self, other, axis=0, drop=False):
4162
4162
Parameters
4163
4163
----------
4164
4164
other : DataFrame
4165
- axis : {0, 1}
4166
- 0 to compute column-wise, 1 for row-wise
4165
+ axis : {0 or 'index' , 1 or 'columns'}, default 0
4166
+ 0 or 'index' to compute column-wise, 1 or 'columns' for row-wise
4167
4167
drop : boolean, default False
4168
4168
Drop missing indices from result, default returns union of all
4169
4169
@@ -4214,8 +4214,8 @@ def count(self, axis=0, level=None, numeric_only=False):
4214
4214
4215
4215
Parameters
4216
4216
----------
4217
- axis : {0, 1}
4218
- 0 for row-wise, 1 for column-wise
4217
+ axis : {0 or 'index' , 1 or 'columns'}, default 0
4218
+ 0 or 'index' for row-wise, 1 or 'columns' for column-wise
4219
4219
level : int or level name, default None
4220
4220
If the axis is a MultiIndex (hierarchical), count along a
4221
4221
particular level, collapsing into a DataFrame
@@ -4368,8 +4368,8 @@ def idxmin(self, axis=0, skipna=True):
4368
4368
4369
4369
Parameters
4370
4370
----------
4371
- axis : {0, 1}
4372
- 0 for row-wise, 1 for column-wise
4371
+ axis : {0 or 'index' , 1 or 'columns'}, default 0
4372
+ 0 or 'index' for row-wise, 1 or 'columns' for column-wise
4373
4373
skipna : boolean, default True
4374
4374
Exclude NA/null values. If an entire row/column is NA, the result
4375
4375
will be NA
@@ -4399,8 +4399,8 @@ def idxmax(self, axis=0, skipna=True):
4399
4399
4400
4400
Parameters
4401
4401
----------
4402
- axis : {0, 1}
4403
- 0 for row-wise, 1 for column-wise
4402
+ axis : {0 or 'index' , 1 or 'columns'}, default 0
4403
+ 0 or 'index' for row-wise, 1 or 'columns' for column-wise
4404
4404
skipna : boolean, default True
4405
4405
Exclude NA/null values. If an entire row/column is NA, the result
4406
4406
will be first index.
@@ -4446,9 +4446,9 @@ def mode(self, axis=0, numeric_only=False):
4446
4446
4447
4447
Parameters
4448
4448
----------
4449
- axis : {0, 1, 'index', 'columns'} ( default 0)
4450
- * 0/ 'index' : get mode of each column
4451
- * 1/ 'columns' : get mode of each row
4449
+ axis : {0 or 'index', 1 or 'columns'}, default 0
4450
+ * 0 or 'index' : get mode of each column
4451
+ * 1 or 'columns' : get mode of each row
4452
4452
numeric_only : boolean, default False
4453
4453
if True, only apply to numeric columns
4454
4454
@@ -4553,7 +4553,7 @@ def rank(self, axis=0, numeric_only=None, method='average',
4553
4553
4554
4554
Parameters
4555
4555
----------
4556
- axis : {0, 1}, default 0
4556
+ axis : {0 or 'index' , 1 or 'columns' }, default 0
4557
4557
Ranks over columns (0) or rows (1)
4558
4558
numeric_only : boolean, default None
4559
4559
Include only float, int, boolean data
@@ -4605,7 +4605,7 @@ def to_timestamp(self, freq=None, how='start', axis=0, copy=True):
4605
4605
how : {'s', 'e', 'start', 'end'}
4606
4606
Convention for converting period to timestamp; start of period
4607
4607
vs. end
4608
- axis : {0, 1} default 0
4608
+ axis : {0 or 'index' , 1 or 'columns'}, default 0
4609
4609
The axis to convert (the index by default)
4610
4610
copy : boolean, default True
4611
4611
If false then underlying input data is not copied
@@ -4636,7 +4636,7 @@ def to_period(self, freq=None, axis=0, copy=True):
4636
4636
Parameters
4637
4637
----------
4638
4638
freq : string, default
4639
- axis : {0, 1}, default 0
4639
+ axis : {0 or 'index' , 1 or 'columns' }, default 0
4640
4640
The axis to convert (the index by default)
4641
4641
copy : boolean, default True
4642
4642
If False then underlying input data is not copied
0 commit comments