Skip to content

REGR: repr of stringified floats (e.g. "3.50") drop ending "0" #38708

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
topper-123 opened this issue Dec 26, 2020 · 1 comment · Fixed by #38759
Closed

REGR: repr of stringified floats (e.g. "3.50") drop ending "0" #38708

topper-123 opened this issue Dec 26, 2020 · 1 comment · Fixed by #38759
Labels
Bug Output-Formatting __repr__ of pandas objects, to_string Regression Functionality that used to work in a prior pandas version
Milestone

Comments

@topper-123
Copy link
Contributor

topper-123 commented Dec 26, 2020

Example:

>>> ser = pd.Series(["3.50"])
>>> ser
0    3.5  # wrong repr, should show 3.50
dtype: object
>>> ser[0]
'3.50'  # this is ok
@topper-123 topper-123 added Bug Needs Triage Issue that has not been reviewed by a pandas team member labels Dec 26, 2020
@topper-123 topper-123 added this to the 1.2.1 milestone Dec 26, 2020
@topper-123 topper-123 added Output-Formatting __repr__ of pandas objects, to_string and removed Needs Triage Issue that has not been reviewed by a pandas team member labels Dec 26, 2020
@topper-123
Copy link
Contributor Author

This is a regression since 1.1. The first bad PR was #36800.

cc @dsaxton

@topper-123 topper-123 changed the title BUG: repr of stringified integers (e.g. "3.50") drops ending "0" REGR: repr of stringified floats (e.g. "3.50") drop ending "0" Dec 27, 2020
@topper-123 topper-123 added the Regression Functionality that used to work in a prior pandas version label Dec 27, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Bug Output-Formatting __repr__ of pandas objects, to_string Regression Functionality that used to work in a prior pandas version
Projects
None yet
Development

Successfully merging a pull request may close this issue.

1 participant