-
-
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
DOC: pandas.DataFrame.to_html
additional description for the border parameter
#60830
Conversation
pandas/io/formats/format.py
Outdated
the opening tag, specifying the thickness of the border. | ||
If ``False or 0 (zero)`` is passed, the border attribute will not | ||
be present in the `<table>`tag. | ||
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.
pandas/io/formats/format.py
Outdated
If ``False or 0 (zero)`` is passed, the border attribute will not | ||
be present in the `<table>`tag. |
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.
If ``False or 0 (zero)`` is passed, the border attribute will not | |
be present in the `<table>`tag. | |
If ``False`` or ``0`` is passed, the border attribute will not | |
be present in the ``<table>`` tag. |
pandas/core/frame.py
Outdated
If ``False or 0 (zero)`` is passed, the border attribute will not | ||
be present in the `<table>` tag. |
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.
If ``False or 0 (zero)`` is passed, the border attribute will not | |
be present in the `<table>` tag. | |
If ``False`` or ``0`` is passed, the border attribute will not | |
be present in the ``<table>`` tag. |
bro what tf just happened.. lemme just revert that |
de4c096
to
a57cd44
Compare
Thanks @ShashwatAgrawal20 |
Even after the change, I think the docstring is not completely correct. If the user passes "0" (as a string), the border will be present. Semantically, the goal is to omit the display of the border attribute when the value is 0. The underlying problem lies in the code itself, but we should capture the behavior of the code in the docstring until the issue in the code is fixed. |
doc/source/whatsnew/vX.X.X.rst
file if fixing a bug or adding a new feature.