pandas groupby function

You are working as a software programmer for a grocery store. You need to manage the chocolate inventory for your company. Use this file- flavors_of_cacao.csv file (attached).

Directions:

Create a python script that perform following tasks.

  1. Read the csv file in Pandas.
  2. Use GroupBy function to display company name and number of different chocolate brands.
  3. Display output at the command prompt.

Submission:

  • Submit Python Script
  • Output Screenshot
0 replies

Leave a Reply

Want to join the discussion?
Feel free to contribute!

Leave a Reply

Your email address will not be published.