Skip to content

Commit b60b4c6

Browse files
authored
Updated docstrings SA04: pandas-dev pandas-dev#28792
1 parent 62c529e commit b60b4c6

File tree

1 file changed

+7
-7
lines changed

1 file changed

+7
-7
lines changed

pandas/core/indexes/base.py

+7-7
Original file line numberDiff line numberDiff line change
@@ -704,7 +704,7 @@ def ravel(self, order="C"):
704704
705705
See Also
706706
--------
707-
numpy.ndarray.ravel
707+
numpy.ndarray.ravel : Return a flattened array.
708708
"""
709709
return self._ndarray_values.ravel(order=order)
710710

@@ -804,7 +804,7 @@ def astype(self, dtype, copy=True):
804804
805805
See Also
806806
--------
807-
numpy.ndarray.take
807+
numpy.ndarray.take : Return an array formed from the elements of a at the given indices.
808808
"""
809809

810810
@Appender(_index_shared_docs["take"] % _index_doc_kwargs)
@@ -2069,8 +2069,8 @@ def dropna(self, how="any"):
20692069
20702070
See Also
20712071
--------
2072-
unique
2073-
Series.unique
2072+
unique : Hash table-based unique. Uniques are returned in order of appearance. This does NOT sort.
2073+
Series.unique : Return unique values of Series object.
20742074
"""
20752075

20762076
@Appender(_index_shared_docs["index_unique"] % _index_doc_kwargs)
@@ -3867,8 +3867,8 @@ def _values(self) -> Union[ExtensionArray, ABCIndexClass, np.ndarray]:
38673867
38683868
See Also
38693869
--------
3870-
values
3871-
_ndarray_values
3870+
values : Return a Numpy representation of the DataFrame.
3871+
_ndarray_values : Internal pandas method for lossy conversion to a NumPy ndarray.
38723872
"""
38733873
return self._data
38743874

@@ -4294,7 +4294,7 @@ def putmask(self, mask, value):
42944294
42954295
See Also
42964296
--------
4297-
numpy.ndarray.putmask
4297+
numpy.ndarray.putmask : Changes elements of an array based on conditional and input values.
42984298
"""
42994299
values = self.values.copy()
43004300
try:

0 commit comments

Comments
 (0)