MCPcopy
hub / github.com/pandas-dev/pandas / test_repr_html

Method test_repr_html

pandas/tests/io/formats/test_to_html.py:916–930  ·  view source on GitHub ↗
(self, float_frame)

Source from the content-addressed store, hash-verified

914 assert "class" in repstr # info fallback
915
916 def test_repr_html(self, float_frame):
917 df = float_frame
918 df._repr_html_()
919
920 with option_context("display.max_rows", 1, "display.max_columns", 1):
921 df._repr_html_()
922
923 with option_context("display.notebook_repr_html", False):
924 df._repr_html_()
925
926 df = DataFrame([[1, 2], [3, 4]])
927 with option_context("display.show_dimensions", True):
928 assert "2 rows" in df._repr_html_()
929 with option_context("display.show_dimensions", False):
930 assert "2 rows" not in df._repr_html_()
931
932 def test_repr_html_mathjax(self):
933 df = DataFrame([[1, 2], [3, 4]])

Callers

nothing calls this directly

Calls 3

_repr_html_Method · 0.95
option_contextFunction · 0.90
DataFrameClass · 0.90

Tested by

no test coverage detected