Question: Q 6 : Use groupby to get the mean tip by smoker ( 2 pts . ) What was the mean tip for smokers (
Q: Use groupby to get the mean tip by smoker pts
What was the mean tip for smokers Yes vs nonsmokers No Use groupby to calculate this and save the result in a variable called groupeddata.
Note: The groupeddata variable should be the result of calling groupby and then mean, which will contain the mean values.
Step by Step Solution
There are 3 Steps involved in it
1 Expert Approved Answer
Step: 1 Unlock
Question Has Been Solved by an Expert!
Get step-by-step solutions from verified subject matter experts
Step: 2 Unlock
Step: 3 Unlock
