new column with age interval pandas code example
Example: new column with age interval pandas
df_ages['age_bins'] = pd.cut(x=df_ages['age'], bins=[20, 29, 39, 49])
df_ages['age_bins'] = pd.cut(x=df_ages['age'], bins=[20, 29, 39, 49])