Assignees
@Charlie-XIAO
Labels
Bug ComplexComplex NumbersConstructorsSeries/DataFrame/Index/pd.array Constructors

Comments

@jbrockmendel
>>> pd.Series([complex('nan')])
[...]
  File "lib.pyx", line 2488, in pandas._libs.lib.maybe_convert_objects
TypeError: must be real number, not complex
@jbrockmendeljbrockmendel added Bug ComplexComplex NumbersConstructorsSeries/DataFrame/Index/pd.array ConstructorsNeeds TriageIssue that has not been reviewed by a pandas team memberand removed Needs TriageIssue that has not been reviewed by a pandas team memberlabels Jun 12, 2023
@Charlie-XIAO

take

@Charlie-XIAO

Is the Series expected to have dtype float64 or complex128 @jbrockmendel?

Edit: nvm I suppose it should be complex128.

@jbrockmendel

Sign up for free to join this conversation on . Already have an account? Sign in to comment
Bug ComplexComplex NumbersConstructorsSeries/DataFrame/Index/pd.array Constructors
None yet

Successfully merging a pull request may close this issue.