MCPcopy Create free account
hub / github.com/plotly/plotly.py / test_line_group

Function test_line_group

tests/test_optional/test_px/test_px_wide.py:852–866  ·  view source on GitHub ↗
(constructor)

Source from the content-addressed store, hash-verified

850
851
852def test_line_group(constructor):
853 df = constructor(
854 {
855 "who": ["a", "a", "b", "b"],
856 "x": [0, 1, 0, 1],
857 "score": [1.0, 2, 3, 4],
858 "miss": [3.2, 2.5, 1.3, 1.5],
859 }
860 )
861 fig = px.line(df, x="x", y=["miss", "score"])
862 assert len(fig.data) == 2
863 fig = px.line(df, x="x", y=["miss", "score"], color="who")
864 assert len(fig.data) == 4
865 fig = px.scatter(df, x="x", y=["miss", "score"], color="who")
866 assert len(fig.data) == 2
867
868
869def test_no_pd_perf_warning():

Callers

nothing calls this directly

Calls 3

constructorFunction · 0.85
scatterMethod · 0.80
lineMethod · 0.45

Tested by

no test coverage detected