@@ -2533,8 +2533,9 @@ def to_msgpack(self, path_or_buf=None, encoding="utf-8", **kwargs):
2533
2533
2534
2534
Parameters
2535
2535
----------
2536
- path : str (file path), buffer-like, or None
2537
- if None, return generated bytes
2536
+ path : str, buffer-like, or None
2537
+ Destination for the serialized object.
2538
+ If None, return generated bytes
2538
2539
append : bool whether to append to an existing msgpack
2539
2540
(default is False)
2540
2541
compress : type of compressor (zlib or blosc), default to None (no
@@ -4621,7 +4622,7 @@ def filter(self, items=None, like=None, regex=None, axis=None):
4621
4622
Keep labels from axis for which "like in label == True".
4622
4623
regex : str (regular expression)
4623
4624
Keep labels from axis for which re.search(regex, label) == True.
4624
- axis : int or str
4625
+ axis : {0 or ‘index’, 1 or ‘columns’, None}, default None
4625
4626
The axis to filter on, expressed either as an index (int)
4626
4627
or axis name (str). By default this is the info axis,
4627
4628
'index' for Series, 'columns' for DataFrame.
@@ -4856,7 +4857,7 @@ def sample(
4856
4857
random_state : int or numpy.random.RandomState, optional
4857
4858
Seed for the random number generator (if int), or numpy RandomState
4858
4859
object.
4859
- axis : int or str, optional
4860
+ axis : {0 or ‘index’, 1 or ‘columns’, None}, default None
4860
4861
Axis to sample. Accepts axis number or name. Default is stat axis
4861
4862
for given data type (0 for Series and DataFrames).
4862
4863
@@ -9444,7 +9445,7 @@ def tshift(self, periods=1, freq=None, axis=0):
9444
9445
freq : DateOffset, timedelta, or str, default None
9445
9446
Increment to use from the tseries module
9446
9447
or time rule expressed as a string (e.g. 'EOM')
9447
- axis : int or str
9448
+ axis : {0 or ‘index’, 1 or ‘columns’, None}, default 0
9448
9449
Corresponds to the axis that contains the Index
9449
9450
9450
9451
Returns
0 commit comments