-
-
Notifications
You must be signed in to change notification settings - Fork 18.6k
TST: added test for to_string when max_rows is zero (GH35394) #43300
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
TST: added test for to_string when max_rows is zero (GH35394) #43300
Conversation
def test_to_string_max_rows_zero(data, expected): | ||
# GH35394 | ||
result = DataFrame(data=data).to_string(max_rows=0) | ||
|
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.
Can remove this blank line
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.
Thanks for the PR. Minor comments
" col1 col2\n0 1 3\n1 2 4", | ||
), | ||
( | ||
{"col1": [0, 2, 4], "col2": [3, 4, 5]}, |
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 test case seems pretty similar to the first is it really needed?
Thanks for the review @alimcmaster1 |
/azp run |
Azure Pipelines successfully started running 1 pipeline(s). |
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.
Looks okay to me.
thanks @lorenzophys |
df.to_string(max_rows=0)
#35394Provided tests for
to_string
whenmax_rows=0
.Tests and linter pass locally.