Skip to content
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

TST: More type checking during .(i)loc #44015

Closed

Conversation

DamianBarabonkovQC
Copy link
Contributor

As explained in issue #43996, the update of v1.3.0 causes a change in dtype casting when assigning a series. The issue contains a minimal working example of this rather inconsistent behaviour. In short, the type of a column changes when the assignment happens on a data frame only containing one column. With multiple columns, assigning the same series retains the original type.

This contribution includes a test case which performs an assignment operation on a single column data frame. Naturally, because of this inconsistency of typing in the current pandas code, this test case fails. Its aim is to serve the bug fix for this inconsistency.

@alimcmaster1 alimcmaster1 added Regression Functionality that used to work in a prior pandas version Categorical Categorical Data Type labels Oct 16, 2021
@alimcmaster1 alimcmaster1 added this to the 1.4 milestone Oct 16, 2021
@jreback
Copy link
Contributor

jreback commented Oct 21, 2021

oh i c you are just testing this, needs a patch.

@jreback jreback removed this from the 1.4 milestone Oct 21, 2021
@DamianBarabonkovQC
Copy link
Contributor Author

Yes. I'm unsure how to patch this just yet.

@jbrockmendel
Copy link
Member

@DamianBarabonkovQC wanna trade? I'll figure out the patch for this and ask you to take a look at a less esoteric issue?

@github-actions
Copy link
Contributor

This pull request is stale because it has been open for thirty days with no activity. Please update or respond to this comment if you're still interested in working on this.

@github-actions github-actions bot added the Stale label Nov 21, 2021
@jreback
Copy link
Contributor

jreback commented Nov 28, 2021

closing as stale if you want to continue, pls ping to reopen.

@jreback jreback closed this Nov 28, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Categorical Categorical Data Type Regression Functionality that used to work in a prior pandas version Stale
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

4 participants