We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 074ef63 commit 58059c1Copy full SHA for 58059c1
pandas/io/formats/style.py
@@ -231,7 +231,7 @@ def __init__(
231
thousands=thousands,
232
)
233
234
- def _repr_html_(self) -> str:
+ def _repr_html_(self) -> str | None:
235
"""
236
Hooks into Jupyter notebook rich display system, which calls _repr_html_ by
237
default if an object is returned at the end of a cell.
@@ -240,7 +240,7 @@ def _repr_html_(self) -> str:
240
return self.to_html()
241
return None
242
243
- def _repr_latex_(self) -> str:
+ def _repr_latex_(self) -> str | None:
244
if get_option("styler.render.repr") == "latex":
245
return self.to_latex()
246
0 commit comments