-
-
Notifications
You must be signed in to change notification settings - Fork 18.4k
DOC: Unclear first example in pandas.DataFrame.append #41407
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
Labels
Milestone
Comments
yes I agree. Thanks for the report. Do feel free to contribute this idea via a PR! |
On it :) |
t0asty
added a commit
to t0asty/pandas
that referenced
this issue
May 12, 2021
…v#41407 Change index to [0, 2] to stress that ignore_index=True resets the index of both dataframes
t0asty
added a commit
to t0asty/pandas
that referenced
this issue
May 12, 2021
4 tasks
t0asty
added a commit
to t0asty/pandas
that referenced
this issue
May 13, 2021
t0asty
added a commit
to t0asty/pandas
that referenced
this issue
May 13, 2021
t0asty
added a commit
to t0asty/pandas
that referenced
this issue
May 14, 2021
t0asty
added a commit
to t0asty/pandas
that referenced
this issue
May 16, 2021
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Location of the documentation
pandas.DataFrame.append
Documentation problem
I think the example chosen to show the difference between ignore_index=False and ignore_index = True (the very first on the page) could make this difference more clear.
Suggested fix for documentation
Choosing a custom index for the first df (the one whose append function is called) could help to especially point out the fact that ignore_index=True actually overwrites the whole index and does not keep the index of the first dataframe, as it could be interpreted from this example (given somebody dared to not read the doc above 😉 )
The text was updated successfully, but these errors were encountered: