def test_agg_raise(self): df = daily_timeseries() from matplotlib import pyplot as plt _, ax = plt.subplots(1, 1) plot_aggregated_ts(df, ax=ax, value='X', agg='year') plt.close('all')
def test_agg_week_hours(self): dummy = dummy_ct1() df = read_ct1(dummy, as_df=True) from matplotlib import pyplot as plt _, ax = plt.subplots(1, 1) plot_aggregated_ts(df, ax=ax, value='ITPRICE', agg='weekhour') plt.close('all')
def test_agg_raise(self): dummy = dummy_ct1() df = read_ct1(dummy, as_df=True) from matplotlib import pyplot as plt _, ax = plt.subplots(1, 1) self.assertRaise( lambda: plot_aggregated_ts(df, ax=ax, value='ITPRICE', agg='year_' ), ValueError) plt.close('all')