Question: Fruit Rate Apple 4.7 Orange 4.6 Avocado 4.7 Cherry 4.7 Cherry 4.8 Apple 4.4 Banana 4.7 Banana 4.7 Orange 4.7 I have these two columns
Fruit Rate Apple 4.7 Orange 4.6 Avocado 4.7 Cherry 4.7 Cherry 4.8 Apple 4.4 Banana 4.7 Banana 4.7 Orange 4.7
I have these two columns in the CSV file. I want to plot a graph with that two columns. But if the name of fruit is duplicate, only get one and their average rage (Distinct). For example, from my CSV file, the data will become
Fruit Rate Apple 4.55 Orange 4.65 Avocado 4.7 Cherry 4.75 Banana 4.7
Then plotting the graph with new data. I need code in Python, please
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
