All our Data Science projects include bite-sized activities to test your knowledge and practice in an environment with constant feedback.
All our activities include solutions with explanations on how they work and why we chose them.
Load the tips_data.csv and store its data in a tips_df variable.
Create your pie chart and, when ready, save it to a tips_by_smokers_chart variable and validate it with the following button.
Your code should look like:
smokers_count = tips_df['smoker'].......
tips_by_smokers_chart = smokers_count.plot(.......
Important! we'll interactively check that your variables
smokers_countandtips_by_smokers_chartcontain the correct information
Create your pie chart and, when ready, save it to a sex_proportion_chart variable and validate it with the following button.
Your code should look like:
tips_by_sex_count = tips_df.......
sex_proportion_chart = tips_by_sex_count.plot(.......
Important! we'll interactively check that your variables
tips_by_sex_countandsex_proportion_chartcontain the correct information
Create your stacked bar chart and, when ready, save it to a tips_by_sex_chart variable and validate it with the following button.
Your code should look like:
tip_amount_by_sex = tips_df.......
tips_by_sex_chart = tip_amount_by_sex.plot(.......
Important! we'll interactively check that your variables
tip_amount_by_sexandtips_by_sex_chartcontain the correct information
Create your pie chart and, when ready, save it to a daily_tips_chart variable and validate it with the following button.
Your code should look like:
daily_tips = tips_df.......
daily_tips_chart = daily_tips.plot(.......
Important! we'll interactively check that your variables
daily_tipsanddaily_tips_chartcontain the correct information
Create your stacked bar chart and, when ready, save it to a tips_by_day_chart variable and validate it with the following button.
Your code should look like:
daily_mean = tips_df.......
tips_by_day_chart = daily_mean.plot(.......
Important! we'll interactively check that your variables
daily_meanandtips_by_day_chartcontain the correct information
Create your stacked bar chart and, when ready, save it to a dinner_lunch_chart variable and validate it with the following button.
Your code should look like:
dinner_lunch_df = tips_df.......
dinner_lunch_chart = dinner_lunch_df.plot(.......
Important! we'll interactively check that your variables
dinner_lunch_dfanddinner_lunch_chartcontain the correct information