8000 DOC: DataFrame.reindex improve summary and return type by gauravchandok · Pull Request #34584 · pandas-dev/pandas · GitHub
[go: up one dir, main page]

Skip to content

DOC: DataFrame.reindex improve summary and return type #34584

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

Closed
Closed
Changes from 1 commit
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
Prev Previous commit
Next Next commit
DataFrame reindex Summary/return: 3
  • Loading branch information
gauravchandok committed Jun 6, 2020
commit b15b121163db71cbeaaabefa84557efe8eb6d54f
7 changes: 2 additions & 5 deletions pandas/core/generic.py
Original file line number Diff line number Diff line change
Expand Up @@ -4239,12 +4239,9 @@ def sort_values(

def reindex(self: FrameOrSeries, *args, **kwargs) -> FrameOrSeries:
"""
Generates an object with a new index and columns retained from %(klass)s.
The values are only retained for those index that matches those in
%(klass)s else NA/Nan.
Create an object with a new index and columns retained from %(klass)s.
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

this is not true, you can specify index and/or columns.


If the new index is entirely equivalent to the current one and copy=false
then the %(klass)s remains intact.
The values are only retained for those index that matches those in %(klass)s else NA/Nan. If the new index is entirely equivalent to the current one and copy=false then the %(klass)s remains intact.

Parameters
----------
Expand Down
0