Skip to content

Fix series creation from dict views #1323

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
Aug 15, 2025
Merged

Conversation

hamdanal
Copy link
Contributor

  • Closes #xxxx (Replace xxxx with the Github issue number)
  • Tests added: Please use assert_type() to assert the type of any return value

collections.dict_views does not exist neither at runtime nor in the stubs, the correct type to use is KeysView from collections.abc. While fixing this I noticed that values views is not supported so I added it. Note that values views is more relevant to the series class as it is NOT set-like but IS sequence-like.

Copy link
Collaborator

@Dr-Irv Dr-Irv left a comment

Choose a reason for hiding this comment

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

thanks @hamdanal

@Dr-Irv Dr-Irv merged commit d6dc067 into pandas-dev:main Aug 15, 2025
13 checks passed
@hamdanal hamdanal deleted the dict-views branch August 15, 2025 17:21
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