Google Cloud Platform, Vertex AI, Machine Learning, Data Science, Hands On Tutorials.
df_agg.drop('last_purchase_category', axis=1, inplace=True) df_agg.drop('last_purchase_brand', axis=1, inplace=True) df_agg.drop('user_id', axis=1, inplace=True) return df_agg def make_data_splits(df_agg): df_train, df_val = train_test_split(df_agg, stratify=df_agg['target'], test_size=0.2)