-
-
Notifications
You must be signed in to change notification settings - Fork 19.3k
BUG: copying series into empty dataframe does not preserve dataframe index name #36141
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
Conversation
|
|
||
| df["series"] = series | ||
|
|
||
| tm.assert_equal(df.index.name, "df_index") |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
can you construct the expected frame and use tm.assert_frame_equal
|
also pls merge master |
|
@simonjayhawkins ok for 1.1.2 (if you haven't tagged), otherwise let's push to 1.1.3 |
ok for 1.1.2 |
|
Thanks @Dr-Irv |
|
@meeseeksdev backport 1.1.x |
2 similar comments
|
@meeseeksdev backport 1.1.x |
|
@meeseeksdev backport 1.1.x |
…e does not preserve dataframe index name
|
Something went wrong ... Please have a look at my logs. |
1 similar comment
|
Something went wrong ... Please have a look at my logs. |
… preserve dataframe index name (#36221) Co-authored-by: Irv Lustig <[email protected]>
indexing/test_partial.py:TestPartialSetting:test_index_name_emptyblack pandasgit diff upstream/master -u -- "*.py" | flake8 --diff