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

Function test_format_index_dict

pandas/tests/io/formats/style/test_format.py:86–89  ·  view source on GitHub ↗
(styler)

Source from the content-addressed store, hash-verified

84
85
86def test_format_index_dict(styler):
87 ctx = styler.format_index({0: lambda v: v.upper()})._translate(True, True)
88 for i, val in enumerate(["X", "Y"]):
89 assert ctx["body"][i][0]["display_value"] == val
90
91
92def test_format_string(styler):

Callers

nothing calls this directly

Calls 3

format_indexMethod · 0.80
upperMethod · 0.80
_translateMethod · 0.45

Tested by

no test coverage detected