Skip to content

BUG: Incorrect float format in object column #35603

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

Closed
simonjayhawkins opened this issue Aug 7, 2020 · 3 comments · Fixed by #41668
Closed

BUG: Incorrect float format in object column #35603

simonjayhawkins opened this issue Aug 7, 2020 · 3 comments · Fixed by #41668
Assignees
Labels
good first issue Needs Tests Unit test(s) needed to prevent regressions Output-Formatting __repr__ of pandas objects, to_string
Milestone

Comments

@simonjayhawkins
Copy link
Member

from #35580 (comment)


Note: Please read this guide detailing how to provide the necessary information for us to reproduce your bug.

Code Sample, a copy-pastable example

>>> pd.Series([1.0]).astype(object)
0    1
dtype: object
>>>

Problem description

[this should explain why the current behaviour is a problem and why the expected output is a better solution]

Expected Output

>>> pd.Series([1.0]).astype(object)
0    1.0
dtype: object

Output of pd.show_versions()

[paste the output of pd.show_versions() here leaving a blank line after the details tag]

@simonjayhawkins simonjayhawkins added Bug Needs Triage Issue that has not been reviewed by a pandas team member Output-Formatting __repr__ of pandas objects, to_string and removed Needs Triage Issue that has not been reviewed by a pandas team member labels Aug 7, 2020
@mzeitlin11
Copy link
Member

Fixed on master, but could probably use a test

@mzeitlin11 mzeitlin11 added good first issue Needs Tests Unit test(s) needed to prevent regressions and removed Bug labels May 15, 2021
@mdhsieh
Copy link
Contributor

mdhsieh commented May 25, 2021

I can try making one.

@mdhsieh
Copy link
Contributor

mdhsieh commented May 25, 2021

take

mdhsieh added a commit to mdhsieh/pandas that referenced this issue May 26, 2021
Checks if series representation matches expected String.
@jreback jreback added this to the 1.3 milestone May 27, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
good first issue Needs Tests Unit test(s) needed to prevent regressions Output-Formatting __repr__ of pandas objects, to_string
Projects
None yet
Development

Successfully merging a pull request may close this issue.

4 participants