Data Science, Time Series Analysis, Machine Learning, Automl, Forecasting.
def classify_into_quartile(value): if value < quartiles[0]: return 1 elif value < quartiles[1]: return 2 elif value < quartiles[2]: return 3 else: return 4 y_train = X_train_transformed["PJME_MW__mean"].rename("daily_energy_level") X_train_transformed.drop("PJME_MW__mean", inplace=True, axis=1)