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

Function bad_facet_spacing_df

tests/test_optional/test_px/test_facets.py:96–107  ·  view source on GitHub ↗
(constructor_func)

Source from the content-addressed store, hash-verified

94
95
96def bad_facet_spacing_df(constructor_func):
97 NROWS = 101
98 NDATA = 1000
99 categories = [n % NROWS for n in range(NDATA)]
100 df = constructor_func(
101 {
102 "x": [random.random() for _ in range(NDATA)],
103 "y": [random.random() for _ in range(NDATA)],
104 "category": categories,
105 }
106 )
107 return df
108
109
110def test_bad_facet_spacing_error(constructor):

Callers 1

Calls

no outgoing calls

Tested by

no test coverage detected