-
-
Notifications
You must be signed in to change notification settings - Fork 18.2k
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
Fix order parameters and add decimal to to_string #23614
Changes from 12 commits
13b3fcd
c41c1ea
910cfea
831aa90
b87dc8c
e19bf6f
ef872e9
87297cd
895f8cd
7186aaf
21fa21e
16678b8
2bb90d4
ddf42c7
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -1451,6 +1451,12 @@ def test_to_string_format_na(self): | |
'4 4.0 bar') | ||
assert result == expected | ||
|
||
def test_to_string_decimal(self): | ||
# Issue #23614 | ||
df = DataFrame({'A': [6.0, 3.1, 2.2]}) | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. can you add the issue number There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Small thing, but I think we consistently use the format @gfyoung I think you changed some in a recent PR, can you confirm? |
||
expected = ' A\n0 6,0\n1 3,1\n2 2,2' | ||
assert df.to_string(decimal=',') == expected | ||
|
||
def test_to_string_line_width(self): | ||
df = DataFrame(123, lrange(10, 15), lrange(30)) | ||
s = df.to_string(line_width=80) | ||
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
this is malformed here, you need the
:func:
to go with the DataFrame.to_html and .to_string (separate ones)There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Got it. Done.