Lab 4: groupby():
Description: Create a new Jupyter Notebook file. Download the zip file containing tips.csv. Extract it and read the data into a pandas DataFrame. Use the skills that were introduced in exercises 3.6 and 3.7 to create DataFrames similar to the below in parts 1 and 2. Submit screengrabs of each DataFrame containing the output, similar to the screenshots below.
- Each question should result in a DataFrame that contains only the given number of rows.
Part 1: Do the data wrangling required to get this dataframe:
- Hint: to calculate the
tip_percentage, dividedf['tip']bydf['total_bill']

Part 2: Do the data wrangling required to answer the following three questions below by using the DataFrame created in Part 1.
- Question 1: Do you earn more tips (on average) for dinner or lunch?

- Question 2: Do you earn a lower (average) tip percent for larger size parties?

- Question 3: Do you get better tips on some days vs others?
