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: complex Series/DataFrame display all complex nans as nan+0j #53844

Merged
merged 3 commits into from
Jun 26, 2023

Conversation

Charlie-XIAO
Copy link
Contributor

@Charlie-XIAO Charlie-XIAO commented Jun 25, 2023

This is a pretty dirty implementation but ATM I cannot think of a better one (b/c I'm afraid of breaking other stuff). Please let me know if there are better ways to do this.

@mroeschke mroeschke added Output-Formatting __repr__ of pandas objects, to_string Complex Complex Numbers labels Jun 26, 2023
@mroeschke mroeschke added this to the 2.1 milestone Jun 26, 2023
@mroeschke mroeschke merged commit 124585b into pandas-dev:main Jun 26, 2023
@mroeschke
Copy link
Member

Thanks @Charlie-XIAO

@Charlie-XIAO Charlie-XIAO deleted the complex-nan-disp-gen branch June 28, 2023 05:40
Daquisu pushed a commit to Daquisu/pandas that referenced this pull request Jul 8, 2023
…andas-dev#53844)

* BUG: complex Series/DataFrame display all complex nans as nan+0j

* resolve mypy via type: ignore[arg-type]
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Complex Complex Numbers Output-Formatting __repr__ of pandas objects, to_string
Projects
None yet
Development

Successfully merging this pull request may close these issues.

BUG: complex Series/DataFrame display all complex nans as nan+0j
2 participants