Fonctionnement de division et cible à l'aide d'ILOC
# splitting features and the target variable
# consider all the columns except 'h1n1_vaccine' using 'iloc'
df_features = df_vaccine.iloc[:, df_vaccine.columns != 'h1n1_vaccine']
# consider the target variable
df_target = df_vaccine.iloc[:, df_vaccine.columns == 'h1n1_vaccine']
Helpful Hare