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

Method test_render

pandas/tests/io/formats/style/test_style.py:511–516  ·  view source on GitHub ↗
(self)

Source from the content-addressed store, hash-verified

509 assert styler.ctx == expected
510
511 def test_render(self):
512 df = DataFrame({"A": [0, 1]})
513 style = lambda x: Series(["color: red", "color: blue"], name=x.name)
514 s = Styler(df, uuid="AB").apply(style)
515 s.to_html()
516 # it worked?
517
518 def test_multiple_render(self, df):
519 # GH 39396

Callers

nothing calls this directly

Calls 5

DataFrameClass · 0.90
SeriesClass · 0.90
StylerClass · 0.90
applyMethod · 0.45
to_htmlMethod · 0.45

Tested by

no test coverage detected