Skip to content

BUG: incompatible dtype when creating string column with loc #55249

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
Sep 22, 2023

Conversation

MarcoGorelli
Copy link
Member

@MarcoGorelli MarcoGorelli commented Sep 22, 2023

with tm.assert_produces_warning(
FutureWarning, match="Setting an item of incompatible dtype"
):
res._set_value("foobar", "baz", "sam")
res._set_value("foobar", "baz", "sam")
Copy link
Member Author

Choose a reason for hiding this comment

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

this is like the reported issue, and probably shouldn't have been warning in the first place

@MarcoGorelli MarcoGorelli marked this pull request as ready for review September 22, 2023 19:03
@mroeschke mroeschke added this to the 2.1.2 milestone Sep 22, 2023
@mroeschke mroeschke added the Indexing Related to indexing on series/frames, not to indexes themselves label Sep 22, 2023
@mroeschke mroeschke merged commit f19f81f into pandas-dev:main Sep 22, 2023
@mroeschke
Copy link
Member

Thanks @MarcoGorelli

meeseeksmachine pushed a commit to meeseeksmachine/pandas that referenced this pull request Sep 22, 2023
mroeschke pushed a commit that referenced this pull request Sep 22, 2023
…ting string column with loc) (#55251)

Backport PR #55249: BUG: incompatible dtype when creating string column with loc

Co-authored-by: Marco Edward Gorelli <[email protected]>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Indexing Related to indexing on series/frames, not to indexes themselves
Projects
None yet
Development

Successfully merging this pull request may close these issues.

BUG: incompatible dtype when creating string column with loc
2 participants