Skip to content

Commit 8af8949

Browse files
HughKelleyWillAyd
authored andcommitted
PR09 Batch 2 (#29396)
1 parent 7ba9eb6 commit 8af8949

File tree

6 files changed

+32
-32
lines changed

6 files changed

+32
-32
lines changed

pandas/core/base.py

+4-4
Original file line numberDiff line numberDiff line change
@@ -1073,7 +1073,7 @@ def argmax(self, axis=None, skipna=True, *args, **kwargs):
10731073
Parameters
10741074
----------
10751075
axis : {None}
1076-
Dummy argument for consistency with Series
1076+
Dummy argument for consistency with Series.
10771077
skipna : bool, default True
10781078
10791079
Returns
@@ -1096,7 +1096,7 @@ def min(self, axis=None, skipna=True, *args, **kwargs):
10961096
Parameters
10971097
----------
10981098
axis : {None}
1099-
Dummy argument for consistency with Series
1099+
Dummy argument for consistency with Series.
11001100
skipna : bool, default True
11011101
11021102
Returns
@@ -1137,7 +1137,7 @@ def argmin(self, axis=None, skipna=True, *args, **kwargs):
11371137
Parameters
11381138
----------
11391139
axis : {None}
1140-
Dummy argument for consistency with Series
1140+
Dummy argument for consistency with Series.
11411141
skipna : bool, default True
11421142
11431143
Returns
@@ -1486,7 +1486,7 @@ def memory_usage(self, deep=False):
14861486
----------
14871487
deep : bool
14881488
Introspect the data deeply, interrogate
1489-
`object` dtypes for system-level memory consumption
1489+
`object` dtypes for system-level memory consumption.
14901490
14911491
Returns
14921492
-------

pandas/core/indexes/base.py

+14-14
Original file line numberDiff line numberDiff line change
@@ -176,11 +176,11 @@ class Index(IndexOpsMixin, PandasObject):
176176
If an actual dtype is provided, we coerce to that dtype if it's safe.
177177
Otherwise, an error will be raised.
178178
copy : bool
179-
Make a copy of input ndarray
179+
Make a copy of input ndarray.
180180
name : object
181-
Name to be stored in the index
181+
Name to be stored in the index.
182182
tupleize_cols : bool (default: True)
183-
When True, attempt to create a MultiIndex if possible
183+
When True, attempt to create a MultiIndex if possible.
184184
185185
See Also
186186
--------
@@ -791,13 +791,13 @@ def astype(self, dtype, copy=True):
791791
Parameters
792792
----------
793793
indices : list
794-
Indices to be taken
794+
Indices to be taken.
795795
axis : int, optional
796796
The axis over which to select values, always 0.
797797
allow_fill : bool, default True
798798
fill_value : bool, default None
799799
If allow_fill=True and fill_value is not None, indices specified by
800-
-1 is regarded as NA. If Index doesn't hold NA, raise ValueError
800+
-1 is regarded as NA. If Index doesn't hold NA, raise ValueError.
801801
802802
Returns
803803
-------
@@ -1077,7 +1077,7 @@ def to_native_types(self, slicer=None, **kwargs):
10771077
2) quoting : bool or None
10781078
Whether or not there are quoted values in `self`
10791079
3) date_format : str
1080-
The format used to represent date-like values
1080+
The format used to represent date-like values.
10811081
10821082
Returns
10831083
-------
@@ -2001,7 +2001,7 @@ def notna(self):
20012001
downcast : dict, default is None
20022002
a dict of item->dtype of what to downcast if possible,
20032003
or the string 'infer' which will try to downcast to an appropriate
2004-
equal type (e.g. float64 to int64 if possible)
2004+
equal type (e.g. float64 to int64 if possible).
20052005
20062006
Returns
20072007
-------
@@ -2056,7 +2056,7 @@ def dropna(self, how="any"):
20562056
Parameters
20572057
----------
20582058
level : int or str, optional, default None
2059-
Only return values from specified level (for MultiIndex)
2059+
Only return values from specified level (for MultiIndex).
20602060
20612061
.. versionadded:: 0.23.0
20622062
@@ -3413,7 +3413,7 @@ def _reindex_non_unique(self, target):
34133413
return_indexers : bool, default False
34143414
sort : bool, default False
34153415
Sort the join keys lexicographically in the result Index. If False,
3416-
the order of the join keys depends on the join type (how keyword)
3416+
the order of the join keys depends on the join type (how keyword).
34173417
34183418
Returns
34193419
-------
@@ -4923,9 +4923,9 @@ def slice_indexer(self, start=None, end=None, step=None, kind=None):
49234923
Parameters
49244924
----------
49254925
start : label, default None
4926-
If None, defaults to the beginning
4926+
If None, defaults to the beginning.
49274927
end : label, default None
4928-
If None, defaults to the end
4928+
If None, defaults to the end.
49294929
step : int, default None
49304930
kind : str, default None
49314931
@@ -5122,11 +5122,11 @@ def slice_locs(self, start=None, end=None, step=None, kind=None):
51225122
Parameters
51235123
----------
51245124
start : label, default None
5125-
If None, defaults to the beginning
5125+
If None, defaults to the beginning.
51265126
end : label, default None
5127-
If None, defaults to the end
5127+
If None, defaults to the end.
51285128
step : int, defaults None
5129-
If None, defaults to 1
5129+
If None, defaults to 1.
51305130
kind : {'ix', 'loc', 'getitem'} or None
51315131
51325132
Returns

pandas/core/indexes/multi.py

+5-6
Original file line numberDiff line numberDiff line change
@@ -737,19 +737,18 @@ def _set_levels(
737737

738738
def set_levels(self, levels, level=None, inplace=False, verify_integrity=True):
739739
"""
740-
Set new levels on MultiIndex. Defaults to returning
741-
new index.
740+
Set new levels on MultiIndex. Defaults to returning new index.
742741
743742
Parameters
744743
----------
745744
levels : sequence or list of sequence
746-
new level(s) to apply
745+
New level(s) to apply.
747746
level : int, level name, or sequence of int/level names (default None)
748-
level(s) to set (None for all levels)
747+
Level(s) to set (None for all levels).
749748
inplace : bool
750-
if True, mutates in place
749+
If True, mutates in place.
751750
verify_integrity : bool (default True)
752-
if True, checks that levels and codes are compatible
751+
If True, checks that levels and codes are compatible.
753752
754753
Returns
755754
-------

pandas/core/indexes/numeric.py

+2-2
Original file line numberDiff line numberDiff line change
@@ -176,9 +176,9 @@ def _union(self, other, sort):
176176
data : array-like (1-dimensional)
177177
dtype : NumPy dtype (default: %(dtype)s)
178178
copy : bool
179-
Make a copy of input ndarray
179+
Make a copy of input ndarray.
180180
name : object
181-
Name to be stored in the index
181+
Name to be stored in the index.
182182
183183
Attributes
184184
----------

pandas/core/indexes/range.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -51,7 +51,7 @@ class RangeIndex(Int64Index):
5151
stop : int (default: 0)
5252
step : int (default: 1)
5353
name : object, optional
54-
Name to be stored in the index
54+
Name to be stored in the index.
5555
copy : bool, default False
5656
Unused, accepted for homogeneity with other index types.
5757

pandas/core/reshape/tile.py

+6-5
Original file line numberDiff line numberDiff line change
@@ -275,17 +275,18 @@ def qcut(
275275
duplicates: str = "raise",
276276
):
277277
"""
278-
Quantile-based discretization function. Discretize variable into
279-
equal-sized buckets based on rank or based on sample quantiles. For example
280-
1000 values for 10 quantiles would produce a Categorical object indicating
281-
quantile membership for each data point.
278+
Quantile-based discretization function.
279+
280+
Discretize variable into equal-sized buckets based on rank or based
281+
on sample quantiles. For example 1000 values for 10 quantiles would
282+
produce a Categorical object indicating quantile membership for each data point.
282283
283284
Parameters
284285
----------
285286
x : 1d ndarray or Series
286287
q : int or list-like of int
287288
Number of quantiles. 10 for deciles, 4 for quartiles, etc. Alternately
288-
array of quantiles, e.g. [0, .25, .5, .75, 1.] for quartiles
289+
array of quantiles, e.g. [0, .25, .5, .75, 1.] for quartiles.
289290
labels : array or bool, default None
290291
Used as labels for the resulting bins. Must be of the same length as
291292
the resulting bins. If False, return only integer indicators of the

0 commit comments

Comments
 (0)