(pd)
| 7725 | |
| 7726 | |
| 7727 | def test_pandas_indexing_dates(pd): |
| 7728 | dates = np.arange('2005-02', '2005-03', dtype='datetime64[D]') |
| 7729 | values = np.sin(range(len(dates))) |
| 7730 | df = pd.DataFrame({'dates': dates, 'values': values}) |
| 7731 | |
| 7732 | ax = plt.gca() |
| 7733 | |
| 7734 | without_zero_index = df[np.array(df.index) % 2 == 1].copy() |
| 7735 | ax.plot('dates', 'values', data=without_zero_index) |
| 7736 | |
| 7737 | |
| 7738 | def test_pandas_errorbar_indexing(pd): |