@@ -2313,7 +2313,7 @@ def to_json(
2313
2313
floating point values.
2314
2314
force_ascii : bool, default True
2315
2315
Force encoded string to be ASCII.
2316
- date_unit : string , default 'ms' (milliseconds)
2316
+ date_unit : str , default 'ms' (milliseconds)
2317
2317
The time unit to encode to, governs timestamp and ISO8601
2318
2318
precision. One of 's', 'ms', 'us', 'ns' for second, millisecond,
2319
2319
microsecond, and nanosecond respectively.
@@ -2533,7 +2533,7 @@ def to_msgpack(self, path_or_buf=None, encoding="utf-8", **kwargs):
2533
2533
2534
2534
Parameters
2535
2535
----------
2536
- path : string File path, buffer-like, or None
2536
+ path : str (file path) , buffer-like, or None
2537
2537
if None, return generated bytes
2538
2538
append : bool whether to append to an existing msgpack
2539
2539
(default is False)
@@ -4621,8 +4621,9 @@ def filter(self, items=None, like=None, regex=None, axis=None):
4621
4621
Keep labels from axis for which "like in label == True".
4622
4622
regex : str (regular expression)
4623
4623
Keep labels from axis for which re.search(regex, label) == True.
4624
- axis : int or string axis name
4625
- The axis to filter on. By default this is the info axis,
4624
+ axis : int or str
4625
+ The axis to filter on, expressed either as an index (int)
4626
+ or axis name (str). By default this is the info axis,
4626
4627
'index' for Series, 'columns' for DataFrame.
4627
4628
4628
4629
Returns
@@ -4855,7 +4856,7 @@ def sample(
4855
4856
random_state : int or numpy.random.RandomState, optional
4856
4857
Seed for the random number generator (if int), or numpy RandomState
4857
4858
object.
4858
- axis : int or string , optional
4859
+ axis : int or str , optional
4859
4860
Axis to sample. Accepts axis number or name. Default is stat axis
4860
4861
for given data type (0 for Series and DataFrames).
4861
4862
@@ -8462,7 +8463,7 @@ def first(self, offset):
8462
8463
8463
8464
Parameters
8464
8465
----------
8465
- offset : string , DateOffset, dateutil.relativedelta
8466
+ offset : str , DateOffset, dateutil.relativedelta
8466
8467
8467
8468
Returns
8468
8469
-------
@@ -8525,7 +8526,7 @@ def last(self, offset):
8525
8526
8526
8527
Parameters
8527
8528
----------
8528
- offset : string , DateOffset, dateutil.relativedelta
8529
+ offset : str , DateOffset, dateutil.relativedelta
8529
8530
8530
8531
Returns
8531
8532
-------
@@ -9133,7 +9134,7 @@ def _where(
9133
9134
9134
9135
Parameters
9135
9136
----------
9136
- cond : boolean %(klass)s, array-like, or callable
9137
+ cond : bool %(klass)s, array-like, or callable
9137
9138
Where `cond` is %(cond)s, keep the original value. Where
9138
9139
%(cond_rev)s, replace with corresponding value from `other`.
9139
9140
If `cond` is callable, it is computed on the %(klass)s and
@@ -9440,9 +9441,10 @@ def tshift(self, periods=1, freq=None, axis=0):
9440
9441
----------
9441
9442
periods : int
9442
9443
Number of periods to move, can be positive or negative
9443
- freq : DateOffset, timedelta, or time rule string, default None
9444
- Increment to use from the tseries module or time rule (e.g. 'EOM')
9445
- axis : int or basestring
9444
+ freq : DateOffset, timedelta, or str, default None
9445
+ Increment to use from the tseries module
9446
+ or time rule expressed as a string (e.g. 'EOM')
9447
+ axis : int or str
9446
9448
Corresponds to the axis that contains the Index
9447
9449
9448
9450
Returns
@@ -9500,9 +9502,9 @@ def truncate(self, before=None, after=None, axis=None, copy=True):
9500
9502
9501
9503
Parameters
9502
9504
----------
9503
- before : date, string , int
9505
+ before : date, str , int
9504
9506
Truncate all rows before this index value.
9505
- after : date, string , int
9507
+ after : date, str , int
9506
9508
Truncate all rows after this index value.
9507
9509
axis : {0 or 'index', 1 or 'columns'}, optional
9508
9510
Axis to truncate. Truncates the index (rows) by default.
@@ -10311,7 +10313,7 @@ def _check_percentile(self, q):
10311
10313
How to handle NAs before computing percent changes.
10312
10314
limit : int, default None
10313
10315
The number of consecutive NAs to fill before stopping.
10314
- freq : DateOffset, timedelta, or offset alias string , optional
10316
+ freq : DateOffset, timedelta, or str , optional
10315
10317
Increment to use from time series API (e.g. 'M' or BDay()).
10316
10318
**kwargs
10317
10319
Additional keyword arguments are passed into
0 commit comments