-
-
Notifications
You must be signed in to change notification settings - Fork 18.4k
BUG: Adds newline after info() call on empty dataframe #45498
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
Conversation
Thanks - please add a test too |
…ndas into shiny-new-feature
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.
actually, perhaps you could modify
def test_info_empty(): |
instead of adding a new test?
Will also need a whatsnew note
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 @EzraBrauner
Thanks for working with me! |
thanks @EzraBrauner |
info
is called on DataFrame #45494This fix improves the formatting of the output of pd.DataFrame.info() when called on an empty DataFrame by adding a newline, per the above issue.
I don't know if this is the proper style for adding newlines, but it appears to pass the linting tests. I'm pretty new to open-source development so let me know if anything should be changed.