Skip to content

Fix Series.to_string #721

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

Merged
merged 2 commits into from
Jun 1, 2023
Merged

Fix Series.to_string #721

merged 2 commits into from
Jun 1, 2023

Conversation

twoertwein
Copy link
Member

@twoertwein twoertwein requested a review from Dr-Irv May 31, 2023 13:27
Copy link
Collaborator

@Dr-Irv Dr-Irv left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Let's fix float_format here as well.

@@ -453,38 +453,28 @@ class Series(IndexOpsMixin, NDFrame, Generic[S1]):
self,
buf: FilePath | WriteBuffer[str],
na_rep: _str = ...,
formatters=...,
float_format=...,
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

We should fix this to be Callable[[float], str] (in both overloads)

Copy link
Collaborator

@Dr-Irv Dr-Irv left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

thanks @twoertwein

@Dr-Irv Dr-Irv merged commit bb41036 into pandas-dev:main Jun 1, 2023
@twoertwein twoertwein deleted the to_string branch August 14, 2023 17:08
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Mypy reports issues with to_string on Series that seem erroneous
2 participants