Data Science, Time Series Analysis, Machine Learning, Automl, Forecasting.
forecasted quartiles for the test period forecasted_quartiles = forecast.iloc[-len(test_df):]['quartile'].astype(int) # Categorize actual daily values in the test set into quartiles test_df['quartile'] = pd.cut(test_df['y'], bins=[-np.inf] + list(quartiles) + [np.inf], labels=[1, 2, 3, 4])