@@ -727,7 +727,8 @@ def set_axis(self, labels, axis: Axis = 0, inplace: bool_t = False):
727
727
The values for the new index.
728
728
729
729
axis : %(axes_single_arg)s, default 0
730
- The axis to update. The value 0 identifies the rows%(axis_description_sub)s.
730
+ The axis to update. The value 0 identifies the rows. For `Series`
731
+ this parameter is unused and defaults to 0.
731
732
732
733
inplace : bool, default False
733
734
Whether to return a new %(klass)s instance.
@@ -807,6 +808,8 @@ def droplevel(self: NDFrameT, level, axis=0) -> NDFrameT:
807
808
* 0 or 'index': remove level(s) in column.
808
809
* 1 or 'columns': remove level(s) in row.
809
810
811
+ For `Series` this parameter is unused and defaults to 0.
812
+
810
813
Returns
811
814
-------
812
815
{klass}
@@ -875,7 +878,7 @@ def squeeze(self, axis=None):
875
878
----------
876
879
axis : {0 or 'index', 1 or 'columns', None}, default None
877
880
A specific axis to squeeze. By default, all length-1 axes are
878
- squeezed.
881
+ squeezed. For `Series` this parameter is unused and defaults to `None`.
879
882
880
883
Returns
881
884
-------
@@ -1063,7 +1066,7 @@ def rename_axis(self, mapper=lib.no_default, **kwargs):
1063
1066
specify the axis to target with ``mapper``, or ``index``
1064
1067
and/or ``columns``.
1065
1068
axis : {0 or 'index', 1 or 'columns'}, default 0
1066
- The axis to rename.
1069
+ The axis to rename. For `Series` this parameter is unused and defaults to 0.
1067
1070
copy : bool, default True
1068
1071
Also copy underlying data.
1069
1072
inplace : bool, default False
@@ -3542,6 +3545,7 @@ def take(
3542
3545
axis : {0 or 'index', 1 or 'columns', None}, default 0
3543
3546
The axis on which to select elements. ``0`` means that we are
3544
3547
selecting rows, ``1`` means that we are selecting columns.
3548
+ For `Series` this parameter is unused and defaults to 0.
3545
3549
is_copy : bool
3546
3550
Before pandas 1.0, ``is_copy=False`` can be specified to ensure
3547
3551
that the return value is an actual copy. Starting with pandas 1.0,
@@ -5087,8 +5091,8 @@ def filter(
5087
5091
Keep labels from axis for which re.search(regex, label) == True.
5088
5092
axis : {0 or ‘index’, 1 or ‘columns’, None}, default None
5089
5093
The axis to filter on, expressed either as an index (int)
5090
- or axis name (str). By default this is the info axis,
5091
- 'index' for Series, 'columns' for DataFrame .
5094
+ or axis name (str). By default this is the info axis, 'columns' for
5095
+ DataFrame. For ` Series` this parameter is unused and defaults to `None` .
5092
5096
5093
5097
Returns
5094
5098
-------
@@ -5372,7 +5376,7 @@ def sample(
5372
5376
5373
5377
axis : {0 or ‘index’, 1 or ‘columns’, None}, default None
5374
5378
Axis to sample. Accepts axis number or name. Default is stat axis
5375
- for given data type (0 for Series and DataFrames) .
5379
+ for given data type. For ` Series` this parameter is unused and defaults to `None` .
5376
5380
ignore_index : bool, default False
5377
5381
If True, the resulting index will be labeled 0, 1, …, n - 1.
5378
5382
@@ -6354,7 +6358,8 @@ def fillna(
6354
6358
pad / ffill: propagate last valid observation forward to next valid
6355
6359
backfill / bfill: use next valid observation to fill gap.
6356
6360
axis : {axes_single_arg}
6357
- Axis along which to fill missing values.
6361
+ Axis along which to fill missing values. For `Series`
6362
+ this parameter is unused and defaults to 0.
6358
6363
inplace : bool, default False
6359
6364
If True, fill in-place. Note: this will modify any
6360
6365
other views on this object (e.g., a no-copy slice for a column in a
@@ -6830,7 +6835,8 @@ def interpolate(
6830
6835
scipy 0.18.
6831
6836
6832
6837
axis : {{0 or 'index', 1 or 'columns', None}}, default None
6833
- Axis to interpolate along.
6838
+ Axis to interpolate along. For `Series` this parameter is unused
6839
+ and defaults to 0.
6834
6840
limit : int, optional
6835
6841
Maximum number of consecutive NaNs to fill. Must be greater than
6836
6842
0.
@@ -7477,8 +7483,9 @@ def clip(
7477
7483
Maximum threshold value. All values above this
7478
7484
threshold will be set to it. A missing
7479
7485
threshold (e.g `NA`) will not clip the value.
7480
- axis : int or str axis name, optional
7486
+ axis : {{0 or 'index', 1 or 'columns', None}}, default None
7481
7487
Align object with lower and upper along the given axis.
7488
+ For `Series` this parameter is unused and defaults to `None`.
7482
7489
inplace : bool, default False
7483
7490
Whether to perform the operation in place on the data.
7484
7491
*args, **kwargs
@@ -7744,6 +7751,7 @@ def at_time(self: NDFrameT, time, asof: bool_t = False, axis=None) -> NDFrameT:
7744
7751
----------
7745
7752
time : datetime.time or str
7746
7753
axis : {0 or 'index', 1 or 'columns'}, default 0
7754
+ For `Series` this parameter is unused and defaults to 0.
7747
7755
7748
7756
Returns
7749
7757
-------
@@ -7830,6 +7838,7 @@ def between_time(
7830
7838
Include boundaries; whether to set each bound as closed or open.
7831
7839
axis : {0 or 'index', 1 or 'columns'}, default 0
7832
7840
Determine range time on index or columns value.
7841
+ For `Series` this parameter is unused and defaults to 0.
7833
7842
7834
7843
Returns
7835
7844
-------
@@ -7951,8 +7960,8 @@ def resample(
7951
7960
rule : DateOffset, Timedelta or str
7952
7961
The offset string or object representing target conversion.
7953
7962
axis : {{0 or 'index', 1 or 'columns'}}, default 0
7954
- Which axis to use for up- or down-sampling. For `Series` this
7955
- will default to 0, i.e. along the rows . Must be
7963
+ Which axis to use for up- or down-sampling. For `Series` this parameter
7964
+ is unused and defaults to 0 . Must be
7956
7965
`DatetimeIndex`, `TimedeltaIndex` or `PeriodIndex`.
7957
7966
closed : {{'right', 'left'}}, default None
7958
7967
Which side of bin interval is closed. The default is 'left'
@@ -8521,6 +8530,7 @@ def rank(
8521
8530
----------
8522
8531
axis : {0 or 'index', 1 or 'columns'}, default 0
8523
8532
Index to direct ranking.
8533
+ For `Series` this parameter is unused and defaults to 0.
8524
8534
method : {'average', 'min', 'max', 'first', 'dense'}, default 'average'
8525
8535
How to rank the group of records that have the same value (i.e. ties):
8526
8536
@@ -9258,7 +9268,8 @@ def where(
9258
9268
inplace : bool, default False
9259
9269
Whether to perform the operation in place on the data.
9260
9270
axis : int, default None
9261
- Alignment axis if needed.
9271
+ Alignment axis if needed. For `Series` this parameter is
9272
+ unused and defaults to 0.
9262
9273
level : int, default None
9263
9274
Alignment level if needed.
9264
9275
errors : str, {{'raise', 'ignore'}}, default 'raise'
@@ -9443,7 +9454,7 @@ def shift(
9443
9454
the freq or inferred_freq attributes of the index. If neither of
9444
9455
those attributes exist, a ValueError is thrown.
9445
9456
axis : {{0 or 'index', 1 or 'columns', None}}, default None
9446
- Shift direction.
9457
+ Shift direction. For `Series` this parameter is unused and defaults to 0.
9447
9458
fill_value : object, optional
9448
9459
The scalar value to use for newly introduced missing values.
9449
9460
the default depends on the dtype of `self`.
@@ -9577,6 +9588,8 @@ def slice_shift(self: NDFrameT, periods: int = 1, axis=0) -> NDFrameT:
9577
9588
----------
9578
9589
periods : int
9579
9590
Number of periods to move, can be positive or negative.
9591
+ axis : {0 or 'index', 1 or 'columns', None}, default 0
9592
+ For `Series` this parameter is unused and defaults to 0.
9580
9593
9581
9594
Returns
9582
9595
-------
@@ -9628,6 +9641,7 @@ def tshift(self: NDFrameT, periods: int = 1, freq=None, axis: Axis = 0) -> NDFra
9628
9641
or time rule expressed as a string (e.g. 'EOM').
9629
9642
axis : {0 or ‘index’, 1 or ‘columns’, None}, default 0
9630
9643
Corresponds to the axis that contains the Index.
9644
+ For `Series` this parameter is unused and defaults to 0.
9631
9645
9632
9646
Returns
9633
9647
-------
@@ -9670,6 +9684,7 @@ def truncate(
9670
9684
Truncate all rows after this index value.
9671
9685
axis : {0 or 'index', 1 or 'columns'}, optional
9672
9686
Axis to truncate. Truncates the index (rows) by default.
9687
+ For `Series` this parameter is unused and defaults to 0.
9673
9688
copy : bool, default is True,
9674
9689
Return a copy of the truncated section.
9675
9690
@@ -10893,6 +10908,7 @@ def mad(
10893
10908
----------
10894
10909
axis : {axis_descr}
10895
10910
Axis for the function to be applied on.
10911
+ For `Series` this parameter is unused and defaults to 0.
10896
10912
skipna : bool, default True
10897
10913
Exclude NA/null values when computing the result.
10898
10914
level : int or level name, default None
@@ -11551,6 +11567,7 @@ def _doc_params(cls):
11551
11567
----------
11552
11568
axis : {axis_descr}
11553
11569
Axis for the function to be applied on.
11570
+ For `Series` this parameter is unused and defaults to 0.
11554
11571
skipna : bool, default True
11555
11572
Exclude NA/null values when computing the result.
11556
11573
level : int or level name, default None
@@ -11581,6 +11598,7 @@ def _doc_params(cls):
11581
11598
Parameters
11582
11599
----------
11583
11600
axis : {axis_descr}
11601
+ For `Series` this parameter is unused and defaults to 0.
11584
11602
skipna : bool, default True
11585
11603
Exclude NA/null values. If an entire row/column is NA, the result
11586
11604
will be NA.
@@ -11672,7 +11690,8 @@ def _doc_params(cls):
11672
11690
Parameters
11673
11691
----------
11674
11692
axis : {{0 or 'index', 1 or 'columns', None}}, default 0
11675
- Indicate which axis or axes should be reduced.
11693
+ Indicate which axis or axes should be reduced. For `Series` this parameter
11694
+ is unused and defaults to 0.
11676
11695
11677
11696
* 0 / 'index' : reduce the index, return a Series whose index is the
11678
11697
original column labels.
@@ -11774,6 +11793,7 @@ def _doc_params(cls):
11774
11793
----------
11775
11794
axis : {{0 or 'index', 1 or 'columns'}}, default 0
11776
11795
The index or the name of the axis. 0 is equivalent to None or 'index'.
11796
+ For `Series` this parameter is unused and defaults to 0.
11777
11797
skipna : bool, default True
11778
11798
Exclude NA/null values. If an entire row/column is NA, the result
11779
11799
will be NA.
0 commit comments