Question: Tasks: 1 . Read the avocado data from the . csv file into a DataFrame and display the first five rows ( 5 pts .

Tasks:
1.Read the avocado data from the .csv file into a DataFrame and display the first five rows (5 pts.).
2.Create a new DataFrame that contains the total of the Small Bags, Large Bags, and XLarge Bags columns grouped by type, and then display the DataFrame (5 pts.).
3.Use the grouped data to create a bar plot that shows the number of small, large, and extra-large bags for both types of avocado (5 pts.).
4.Use the original data to create a scatter plot for the Total Volume and AveragePrice columns (5 pts.).
Questions
You must show the code that answers each question, include your answer as a comment.
1.In what year were the most bags of avocados sold (3 pts.)?
2.Do the total bags of avocados appear to have an effect on the average price (2 pt.)?
Tasks: 1 . Read the avocado data from the . csv

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Programming Questions!