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

Fix TypeError problem with the DataFrame.query() method when the DataFrame contains duplicate column names. #60005

Closed
wants to merge 2 commits into from

Conversation

Asifussain
Copy link

This pull request includes a change to the _get_cleaned_column_resolvers method in the pandas/core/generic.py file. The change ensures that the correct data type is used when creating a Series object.

Data type handling improvement:

  • pandas/core/generic.py: Modified the _get_cleaned_column_resolvers method to use the correct data type (dtype) as iteration of dtypes when creating a Series object by including dtypes in the zip function.

Asifussain added 2 commits October 8, 2024 18:56
Use individual dtypes in Series constructor during iteration.
@mroeschke
Copy link
Member

Thanks for the PR, but we have a contributor already working on this issue (#59971). If this PR goes stale we can reopen this one so closing

@mroeschke mroeschke closed this Oct 8, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants