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

Function test_pandas_example

tests/test_optional/test_px/test_pandas_backend.py:52–57  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

50 reason="Currently installed pandas doesn't support plotting backends.",
51)
52def test_pandas_example():
53 pd.options.plotting.backend = "plotly"
54 ts = pd.Series(np.random.randn(1000), index=pd.date_range("1/1/2000", periods=1000))
55 df = pd.DataFrame(np.random.randn(1000, 4), index=ts.index, columns=list("ABCD"))
56 fig = df.iloc[5].plot.bar()
57 assert len(fig.data) == 1

Callers

nothing calls this directly

Calls 1

barMethod · 0.45

Tested by

no test coverage detected