Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR PYTHON

new column with age interval pandas

df_ages['age_bins'] = pd.cut(x=df_ages['age'], bins=[20, 29, 39, 49])
Source by dfrieds.com #
 
PREVIOUS NEXT
Tagged: #column #age #interval #pandas
ADD COMMENT
Topic
Name
2+5 =