(constructor)
| 850 | |
| 851 | |
| 852 | def 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 | |
| 869 | def test_no_pd_perf_warning(): |
nothing calls this directly
no test coverage detected