()
| 50 | reason="Currently installed pandas doesn't support plotting backends.", |
| 51 | ) |
| 52 | def 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 |