Skip to content

BUG: Enable changing dtype of column where column names are not unique #27256

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
wants to merge 1 commit into from

Conversation

rok
Copy link
Contributor

@rok rok commented Jul 6, 2019

…ique and columns being assinged to will be overwritten and change type.
@gfyoung gfyoung added Dtype Conversions Unexpected or buggy dtype conversions Indexing Related to indexing on series/frames, not to indexes themselves labels Jul 6, 2019
@@ -1075,6 +1075,12 @@ def value_getitem(placement):
blknos = self._blknos[loc]
blklocs = self._blklocs[loc].copy()

if not self.axes[0].is_unique:
Copy link
Contributor

Choose a reason for hiding this comment

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

really don't want to add anything in internals; why is this not possible to be done in pandas/core/indexing?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

@jreback agreed, thanks for feedback! This is work in progress. I'll try to fix it in pandas/core/indexing.

@WillAyd
Copy link
Member

WillAyd commented Aug 26, 2019

@rok is this still active?

@rok
Copy link
Contributor Author

rok commented Aug 26, 2019

@WillAyd yeah, I still plan to do this but have to make time. If I'm blocking anything please let me know. :)

@jreback
Copy link
Contributor

jreback commented Oct 6, 2019

closing as stale, though we'd still like this when you can comeback; ping to re-open.

@jreback jreback closed this Oct 6, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Dtype Conversions Unexpected or buggy dtype conversions Indexing Related to indexing on series/frames, not to indexes themselves
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Unable to change dtype of a column after concat and duplicate column names
4 participants