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

Method test_repr_html_wide

pandas/tests/io/formats/test_to_html.py:941–949  ·  view source on GitHub ↗
(self)

Source from the content-addressed store, hash-verified

939 assert "mathjax_ignore" in df._repr_html_()
940
941 def test_repr_html_wide(self):
942 max_cols = 20
943 df = DataFrame([["a" * 25] * (max_cols - 1)] * 10)
944 with option_context("display.max_rows", 60, "display.max_columns", 20):
945 assert "..." not in df._repr_html_()
946
947 wide_df = DataFrame([["a" * 25] * (max_cols + 1)] * 10)
948 with option_context("display.max_rows", 60, "display.max_columns", 20):
949 assert "..." in wide_df._repr_html_()
950
951 def test_repr_html_wide_multiindex_cols(self):
952 max_cols = 20

Callers

nothing calls this directly

Calls 3

_repr_html_Method · 0.95
DataFrameClass · 0.90
option_contextFunction · 0.90

Tested by

no test coverage detected