@@ -176,11 +176,11 @@ class Index(IndexOpsMixin, PandasObject):
176
176
If an actual dtype is provided, we coerce to that dtype if it's safe.
177
177
Otherwise, an error will be raised.
178
178
copy : bool
179
- Make a copy of input ndarray
179
+ Make a copy of input ndarray.
180
180
name : object
181
- Name to be stored in the index
181
+ Name to be stored in the index.
182
182
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.
184
184
185
185
See Also
186
186
--------
@@ -791,13 +791,13 @@ def astype(self, dtype, copy=True):
791
791
Parameters
792
792
----------
793
793
indices : list
794
- Indices to be taken
794
+ Indices to be taken.
795
795
axis : int, optional
796
796
The axis over which to select values, always 0.
797
797
allow_fill : bool, default True
798
798
fill_value : bool, default None
799
799
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.
801
801
802
802
Returns
803
803
-------
@@ -1077,7 +1077,7 @@ def to_native_types(self, slicer=None, **kwargs):
1077
1077
2) quoting : bool or None
1078
1078
Whether or not there are quoted values in `self`
1079
1079
3) date_format : str
1080
- The format used to represent date-like values
1080
+ The format used to represent date-like values.
1081
1081
1082
1082
Returns
1083
1083
-------
@@ -2001,7 +2001,7 @@ def notna(self):
2001
2001
downcast : dict, default is None
2002
2002
a dict of item->dtype of what to downcast if possible,
2003
2003
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).
2005
2005
2006
2006
Returns
2007
2007
-------
@@ -2056,7 +2056,7 @@ def dropna(self, how="any"):
2056
2056
Parameters
2057
2057
----------
2058
2058
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).
2060
2060
2061
2061
.. versionadded:: 0.23.0
2062
2062
@@ -3413,7 +3413,7 @@ def _reindex_non_unique(self, target):
3413
3413
return_indexers : bool, default False
3414
3414
sort : bool, default False
3415
3415
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).
3417
3417
3418
3418
Returns
3419
3419
-------
@@ -4923,9 +4923,9 @@ def slice_indexer(self, start=None, end=None, step=None, kind=None):
4923
4923
Parameters
4924
4924
----------
4925
4925
start : label, default None
4926
- If None, defaults to the beginning
4926
+ If None, defaults to the beginning.
4927
4927
end : label, default None
4928
- If None, defaults to the end
4928
+ If None, defaults to the end.
4929
4929
step : int, default None
4930
4930
kind : str, default None
4931
4931
@@ -5122,11 +5122,11 @@ def slice_locs(self, start=None, end=None, step=None, kind=None):
5122
5122
Parameters
5123
5123
----------
5124
5124
start : label, default None
5125
- If None, defaults to the beginning
5125
+ If None, defaults to the beginning.
5126
5126
end : label, default None
5127
- If None, defaults to the end
5127
+ If None, defaults to the end.
5128
5128
step : int, defaults None
5129
- If None, defaults to 1
5129
+ If None, defaults to 1.
5130
5130
kind : {'ix', 'loc', 'getitem'} or None
5131
5131
5132
5132
Returns
0 commit comments