Open ivor25 opened 4 weeks ago
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 Falseis 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.
take
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 When an integer value is provided, it sets the border attribute in the opening
<table>
tag.The default value for this parameter is governed by pd.options.display.html.border.
take