Question: Python-- in this homework, we try to visualize some of the products data made available to us from a manufacturer. The data is available in

Python--

in this homework, we try to visualize some of the products data made available to us from a manufacturer. The data is available in a Python file called

catalog.py inside a variable called products . This variable can be imported by calling from catalog import products command at the top of your source code file.

Please use Matplotlib library for Python to generate all the plots in this homework. Write a function called plotproduct condition that accepts one argument, which is the same data object described above. You have to import this products object from the catalog.py file and use it when calling the function you are writing. In the function, calculate the counts for each product condition (New vs. Used vs. Refurbished), and then, plot them using a pie chart. Keep in mind that all the plots you generate need to have proper title and axis labels. For the pie chart, you need to add percentages of each product condition on the chart as well. A sample generated pie chart is displayed in Figure

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 Databases Questions!