(self)
| 376 | assert not Index(rs).is_normalized |
| 377 | |
| 378 | def test_dataframe(self): |
| 379 | bts = DataFrame( |
| 380 | { |
| 381 | "a": Series( |
| 382 | np.arange(10, dtype=np.float64), |
| 383 | index=date_range("2020-01-01", periods=10), |
| 384 | ) |
| 385 | } |
| 386 | ) |
| 387 | _, ax = mpl.pyplot.subplots() |
| 388 | bts.plot(ax=ax) |
| 389 | idx = ax.get_lines()[0].get_xdata() |
| 390 | tm.assert_index_equal(bts.index.to_period(), PeriodIndex(idx)) |
| 391 | |
| 392 | @pytest.mark.filterwarnings( |
| 393 | "ignore:Period with BDay freq is deprecated:FutureWarning" |
nothing calls this directly
no test coverage detected