leaking data in 4. Forecasting Discrete Values in automl_time_series_forecast
https://github.com/microsoft/FLAML/blob/main/notebook/automl_time_series_forecast.ipynb
df["above_mean_sales"] = np.where(df["Sales"] > df["Sales"].mean(), 1, 0)
you put to train data information from test data