Answers for "new column with age interval pandas"

1

new column with age interval pandas

df_ages['age_bins'] = pd.cut(x=df_ages['age'], bins=[20, 29, 39, 49])
Posted by: Guest on November-24-2020

Code answers related to "new column with age interval pandas"

Python Answers by Framework

Browse Popular Code Answers by Language