Question
I have the data frame called 'Top Athlete' that has the columns 'season', contestant id', 'full name', and ' contestant age'. I want to make
I have the data frame called 'Top Athlete' that has the columns 'season', contestant id', 'full name', and ' contestant age'. I want to make a data frame called Q1 that bins the contestant ages (their age when they were on the season, not their current age) into the following age categories: 18-24, 25-34, 35-44, 45-54, 55-64, 65+
The final data frame should have the following columns in this order: season, contestant id, full name, age, and age category. The data frame should be sorted by age and then contestant id. The index should be 0 through n-1.
Step by Step Solution
There are 3 Steps involved in it
Step: 1
Get Instant Access to Expert-Tailored Solutions
See step-by-step solutions with expert insights and AI powered tools for academic success
Step: 2
Step: 3
Ace Your Homework with AI
Get the answers you need in no time with our AI-driven, step-by-step assistance
Get Started