Skip to content
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

Merged
merged 3 commits into from
Feb 4, 2025

Conversation

ShashwatAgrawal20
Copy link
Contributor

@ShashwatAgrawal20 ShashwatAgrawal20 marked this pull request as ready for review February 2, 2025 16:10
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.
Copy link
Member

Choose a reason for hiding this comment

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

Suggested change

Comment on lines 903 to 904
If ``False or 0 (zero)`` is passed, the border attribute will not
be present in the `<table>`tag.
Copy link
Member

Choose a reason for hiding this comment

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

Suggested change
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.

Comment on lines 3211 to 3212
If ``False or 0 (zero)`` is passed, the border attribute will not
be present in the `<table>` tag.
Copy link
Member

Choose a reason for hiding this comment

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

Suggested change
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.

@ShashwatAgrawal20
Copy link
Contributor Author

bro what tf just happened.. lemme just revert that

@mroeschke mroeschke added this to the 3.0 milestone Feb 4, 2025
@mroeschke mroeschke merged commit b2a7a26 into pandas-dev:main Feb 4, 2025
38 of 42 checks passed
@mroeschke
Copy link
Member

Thanks @ShashwatAgrawal20

@ivor25
Copy link

ivor25 commented Feb 4, 2025

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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

DOC: pandas.DataFrame.to_html additional description for the border parameter
3 participants