Skip to content

fix some dosctring-RT02-error #50181

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 1 commit into from
Dec 11, 2022
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
12 changes: 6 additions & 6 deletions pandas/core/indexes/base.py
Original file line number Diff line number Diff line change
Expand Up @@ -1116,7 +1116,7 @@ def _maybe_disallow_fill(self, allow_fill: bool, fill_value, indices) -> bool:

Returns
-------
repeated_index : %(klass)s
%(klass)s
Newly created %(klass)s with repeated elements.

See Also
Expand Down Expand Up @@ -2755,7 +2755,7 @@ def drop_duplicates(self: _IndexT, *, keep: DropKeep = "first") -> _IndexT:

Returns
-------
deduplicated : Index
Index

See Also
--------
Expand Down Expand Up @@ -3128,7 +3128,7 @@ def intersection(self, other, sort: bool = False):

Returns
-------
intersection : Index
Index

Examples
--------
Expand Down Expand Up @@ -5918,7 +5918,7 @@ def map(self, mapper, na_action=None):

Returns
-------
applied : Union[Index, MultiIndex], inferred
Union[Index, MultiIndex]
The output of the mapping function applied to the index.
If the function returns a tuple with more than one element
a MultiIndex will be returned.
Expand Down Expand Up @@ -6397,7 +6397,7 @@ def insert(self, loc: int, item) -> Index:

Returns
-------
new_index : Index
Index
"""
item = lib.item_from_zerodim(item)
if is_valid_na_for_dtype(item, self.dtype) and self.dtype != object:
Expand Down Expand Up @@ -6457,7 +6457,7 @@ def drop(

Returns
-------
dropped : Index
Index
Will be same type as self, except for RangeIndex.

Raises
Expand Down
6 changes: 3 additions & 3 deletions pandas/io/formats/style_render.py
Original file line number Diff line number Diff line change
Expand Up @@ -987,7 +987,7 @@ def format(

Returns
-------
self : Styler
Styler

See Also
--------
Expand Down Expand Up @@ -1202,7 +1202,7 @@ def format_index(

Returns
-------
self : Styler
Styler

See Also
--------
Expand Down Expand Up @@ -1365,7 +1365,7 @@ def relabel_index(

Returns
-------
self : Styler
Styler

See Also
--------
Expand Down