You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Related to #53682, which fixes the problem that series with complex nan raises. See also #53682 (comment) in which the repr is buggy. This is likely caused by the FloatArrayFormatter, which does not distinguish float nan and complex nan (both treated as NaN). However, complex nan will go through the alignment process of complex numbers, which assumes the format of x.x+x.xj. One possible solution is to treat complex nans as NaN+0.0j (unlike float nans). I will investigate to see if there are better solutions, and if not make a PR for this.
Uh oh!
There was an error while loading. Please reload this page.
Pandas version checks
Reproducible Example
Issue Description
Related to #53682, which fixes the problem that series with complex nan raises. See also #53682 (comment) in which the repr is buggy. This is likely caused by the
FloatArrayFormatter
, which does not distinguish float nan and complex nan (both treated asNaN
). However, complex nan will go through the alignment process of complex numbers, which assumes the format ofx.x+x.xj
. One possible solution is to treat complex nans asNaN+0.0j
(unlike float nans). I will investigate to see if there are better solutions, and if not make a PR for this.Expected Behavior
Installed Versions
The text was updated successfully, but these errors were encountered: