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

BUG: NumericIndex.astype(complex) should return Index[complex] #49540

Merged
merged 1 commit into from
Nov 8, 2022

Conversation

topper-123
Copy link
Contributor

Working towards #42717 I discovered as small bug in Index.astype, where the returned class is wrong.

xref #49494.

@mroeschke mroeschke added Dtype Conversions Unexpected or buggy dtype conversions Index Related to the Index class or subclasses labels Nov 8, 2022
@mroeschke mroeschke added this to the 2.0 milestone Nov 8, 2022
@mroeschke mroeschke merged commit 25832bc into pandas-dev:main Nov 8, 2022
@mroeschke
Copy link
Member

Thanks @topper-123

@topper-123 topper-123 deleted the convert_to_complex_bug branch November 8, 2022 19:12
phofl pushed a commit to phofl/pandas that referenced this pull request Nov 9, 2022
…s-dev#49540)

Co-authored-by: Terji Petersen <terjipetersen@Terjis-Air.fritz.box>
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 Index Related to the Index class or subclasses
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants