@@ -2310,7 +2310,7 @@ def to_json(
2310
2310
floating point values.
2311
2311
force_ascii : bool, default True
2312
2312
Force encoded string to be ASCII.
2313
- date_unit : string , default 'ms' (milliseconds)
2313
+ date_unit : str , default 'ms' (milliseconds)
2314
2314
The time unit to encode to, governs timestamp and ISO8601
2315
2315
precision. One of 's', 'ms', 'us', 'ns' for second, millisecond,
2316
2316
microsecond, and nanosecond respectively.
@@ -2530,8 +2530,9 @@ def to_msgpack(self, path_or_buf=None, encoding="utf-8", **kwargs):
2530
2530
2531
2531
Parameters
2532
2532
----------
2533
- path : string File path, buffer-like, or None
2534
- if None, return generated bytes
2533
+ path : str, buffer-like, or None
2534
+ Destination for the serialized object.
2535
+ If None, return generated bytes
2535
2536
append : bool whether to append to an existing msgpack
2536
2537
(default is False)
2537
2538
compress : type of compressor (zlib or blosc), default to None (no
@@ -4618,8 +4619,9 @@ def filter(self, items=None, like=None, regex=None, axis=None):
4618
4619
Keep labels from axis for which "like in label == True".
4619
4620
regex : str (regular expression)
4620
4621
Keep labels from axis for which re.search(regex, label) == True.
4621
- axis : int or string axis name
4622
- The axis to filter on. By default this is the info axis,
4622
+ axis : {0 or ‘index’, 1 or ‘columns’, None}, default None
4623
+ The axis to filter on, expressed either as an index (int)
4624
+ or axis name (str). By default this is the info axis,
4623
4625
'index' for Series, 'columns' for DataFrame.
4624
4626
4625
4627
Returns
@@ -4852,7 +4854,7 @@ def sample(
4852
4854
random_state : int or numpy.random.RandomState, optional
4853
4855
Seed for the random number generator (if int), or numpy RandomState
4854
4856
object.
4855
- axis : int or string, optional
4857
+ axis : {0 or ‘index’, 1 or ‘columns’, None}, default None
4856
4858
Axis to sample. Accepts axis number or name. Default is stat axis
4857
4859
for given data type (0 for Series and DataFrames).
4858
4860
@@ -8456,7 +8458,7 @@ def first(self, offset):
8456
8458
8457
8459
Parameters
8458
8460
----------
8459
- offset : string , DateOffset, dateutil.relativedelta
8461
+ offset : str , DateOffset, dateutil.relativedelta
8460
8462
8461
8463
Returns
8462
8464
-------
@@ -8519,7 +8521,7 @@ def last(self, offset):
8519
8521
8520
8522
Parameters
8521
8523
----------
8522
- offset : string , DateOffset, dateutil.relativedelta
8524
+ offset : str , DateOffset, dateutil.relativedelta
8523
8525
8524
8526
Returns
8525
8527
-------
@@ -9127,7 +9129,7 @@ def _where(
9127
9129
9128
9130
Parameters
9129
9131
----------
9130
- cond : boolean %(klass)s, array-like, or callable
9132
+ cond : bool %(klass)s, array-like, or callable
9131
9133
Where `cond` is %(cond)s, keep the original value. Where
9132
9134
%(cond_rev)s, replace with corresponding value from `other`.
9133
9135
If `cond` is callable, it is computed on the %(klass)s and
@@ -9434,9 +9436,10 @@ def tshift(self, periods=1, freq=None, axis=0):
9434
9436
----------
9435
9437
periods : int
9436
9438
Number of periods to move, can be positive or negative
9437
- freq : DateOffset, timedelta, or time rule string, default None
9438
- Increment to use from the tseries module or time rule (e.g. 'EOM')
9439
- axis : int or basestring
9439
+ freq : DateOffset, timedelta, or str, default None
9440
+ Increment to use from the tseries module
9441
+ or time rule expressed as a string (e.g. 'EOM')
9442
+ axis : {0 or ‘index’, 1 or ‘columns’, None}, default 0
9440
9443
Corresponds to the axis that contains the Index
9441
9444
9442
9445
Returns
@@ -9494,9 +9497,9 @@ def truncate(self, before=None, after=None, axis=None, copy=True):
9494
9497
9495
9498
Parameters
9496
9499
----------
9497
- before : date, string , int
9500
+ before : date, str , int
9498
9501
Truncate all rows before this index value.
9499
- after : date, string , int
9502
+ after : date, str , int
9500
9503
Truncate all rows after this index value.
9501
9504
axis : {0 or 'index', 1 or 'columns'}, optional
9502
9505
Axis to truncate. Truncates the index (rows) by default.
@@ -10305,7 +10308,7 @@ def _check_percentile(self, q):
10305
10308
How to handle NAs before computing percent changes.
10306
10309
limit : int, default None
10307
10310
The number of consecutive NAs to fill before stopping.
10308
- freq : DateOffset, timedelta, or offset alias string , optional
10311
+ freq : DateOffset, timedelta, or str , optional
10309
10312
Increment to use from time series API (e.g. 'M' or BDay()).
10310
10313
**kwargs
10311
10314
Additional keyword arguments are passed into
0 commit comments