Skip to content

DOC: Example missing in pandas.DataFrame.to_html #44945

Open
@vimaloctavius

Description

@vimaloctavius

Pandas version checks

  • I have checked that the issue still exists on the latest versions of the docs on master here

Location of the documentation

pandas.DataFrame.to_html (https://pandas.pydata.org/docs/dev/reference/api/pandas.DataFrame.to_html.html?highlight=pandas%20dataframe%20to_html#)

Documentation problem

Came across the documentation for pandas.DataFrame.to_html, found no example

Suggested fix for documentation

Example:

df = pd.DataFrame({'ID': ['XYZ', 'ABC'],
... 'Department': ['HR', 'Admin'],
... 'Job Title': ['Title1', 'Title2']})

print(df.to_html())

ID Department Job Title
0 XYZ HR Title1
1 ABC Admin Title2

Metadata

Metadata

Assignees

Labels

DocsIO HTMLread_html, to_html, Styler.apply, Styler.applymap

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions