We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
main
https://pandas.pydata.org/pandas-docs/stable/reference/api/pandas.DataFrame.to_html.html
pandas.DataFrame.to_html parameter border is missing description for the behaviour when the border=0 or border=False is passed.
pandas.DataFrame.to_html
border
border=0
border=False
This means that documenation should be extended, as if the border=0 or False is passed, the border is not present in the output <table> tag. Documentation indicates that border will always be included but this is lie. This behaviour was introduced in the pandas 1.5.0: https://pandas.pydata.org/pandas-docs/version/1.5.0/whatsnew/v1.5.0.html#:~:text=to_html()%20now%20excludes%20the%20border%20attribute%20from%20%3Ctable%3E%20elements%20when%20border%20keyword%20is%20set%20to%20False.
False
<table>
Improved description for the border parameter:
border: int or bool When an integer value is provided, it sets the border attribute in the opening
The default value for this parameter is governed by pd.options.display.html.border.
The text was updated successfully, but these errors were encountered:
take
Sorry, something went wrong.
ivor25
No branches or pull requests
Pandas version checks
main
hereLocation of the documentation
https://pandas.pydata.org/pandas-docs/stable/reference/api/pandas.DataFrame.to_html.html
Documentation problem
pandas.DataFrame.to_html
parameterborder
is missing description for the behaviour when theborder=0
orborder=False
is passed.This means that documenation should be extended, as if the
border=0
orFalse
is passed, the border is not present in the output<table>
tag. Documentation indicates thatborder
will always be included but this is lie. This behaviour was introduced in the pandas 1.5.0: https://pandas.pydata.org/pandas-docs/version/1.5.0/whatsnew/v1.5.0.html#:~:text=to_html()%20now%20excludes%20the%20border%20attribute%20from%20%3Ctable%3E%20elements%20when%20border%20keyword%20is%20set%20to%20False.Suggested fix for documentation
Improved description for the
border
parameter:border: int or bool
tag, specifying the thickness of the border.When an integer value is provided, it sets the border attribute in the opening
If False or 0 (zero) is passed, the border attribute will not be present in the
<table>
tag.The default value for this parameter is governed by pd.options.display.html.border.
The text was updated successfully, but these errors were encountered: