DekGenius.com
Home
(current)
Dictionary
BOOKS
LYRICS
CHORD
SCRIPT & CODE EXAMPLE
Karaoke language
Search
Go
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
COMMENT
Name
2+5 =
Submit