-
-
Notifications
You must be signed in to change notification settings - Fork 18.1k
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: series with complex nan #53682
Merged
Merged
BUG: series with complex nan #53682
Conversation
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
@jbrockmendel suggested changes made, thanks for your review! One thing to notice is the repr: >>> import pandas as pd
>>> pd.Series([complex("nan")])
0 NaN
dtype: complex128
>>> pd.Series([1, complex("nan"), 2])
0 1.0+0.0j
1 N000a000N
2 2.0+0.0j
dtype: complex128 I don't think this is as expected, but I suppose this should be a separate issue? |
mroeschke
added
Complex
Complex Numbers
Constructors
Series/DataFrame/Index/pd.array Constructors
labels
Jun 20, 2023
mroeschke
approved these changes
Jun 20, 2023
Thanks @Charlie-XIAO
Yeah that appears to be a bug. Could you open a separate issue about that? |
Sure, will do soon. |
3 tasks
canthonyscott
pushed a commit
to canthonyscott/pandas-anthony
that referenced
this pull request
Jun 23, 2023
* avoid float(complex('nan')) * update * added test * modified tests; added changelog * changelog modified
3 tasks
Daquisu
pushed a commit
to Daquisu/pandas
that referenced
this pull request
Jul 8, 2023
* avoid float(complex('nan')) * update * added test * modified tests; added changelog * changelog modified
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Labels
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
doc/source/whatsnew/v2.1.0.rst
file