Question: In PYTHON please, can you help me graph this ? - How do the average ratings change over years for each main genre? Below is

In PYTHON please, can you help me graph this ?

In PYTHON please, can you help me graph this ? - How

- How do the average ratings change over years for each main genre? Below is a pivot table that reflect the average ratings per year. Create a line graph that summarizes the table below. The graph should have one line for each genre In [66]: df . pivot table(' rating . index-'year ', columns="main-genre ", fill-value=0) Out [ 66] 0 Film Horror Noir main genre genres Action Adventure Animation Children Comedy Crime Documentary Drama Fantasy IMAX MusicE listed) year 1891 3.000000 0.000000 0.000000 0.000000 0.000000 0.000000 0.000000 1893 3.375000 0.000000 0.000000 0.000000 0.000000 0.000000 0.000000 1894 0.000000 0.000000 0.000000 0.000000 0.000000 0.000000 0.000000 1895 0.000000 0.000000 0.000000 0.000000 0.000000 2.250000 0.000000 1896 0.000000 0.000000 0.000000 0.000000 0.000000 0.000000 0.000000 1898 4.333333 0.000000 0.000000 0.000000 0.000000 0.000000 0.000000 1899 0.000000 0.000000 0.000000 0.000000 0.000000 0.000000 0.000000 1900 0.000000 0.000000 0.000000 0.000000 0.000000 0.000000 0.000000 1901 0.000000 0.000000 0.000000 0.000000 0.000000 0.000000 0.000000 1902 0.000000 3.738189 0.000000 0.000000 0.000000 0.000000 0.000000 0.000000 0.000000 0.000000 0.000000 0.000000 0.000000 0.00000 0.000000 0.000000 0.000000 0.000000 0.000000 0.000000 0.00000 2.714286 0.000000 0.000000 0.000000 0.000000 0.000000 3.42857 4.000000 0.000000 0.000000 0.000000 0.000000 0.000000 0.00000 3.437500 0.000000 0.000000 0.000000 0.000000 0.000000 0.00000 0.000000 0.000000 3.750000 0.000000 0.000000 0.000000 0.00000 0.000000 0.000000 3.625000 0.000000 0.000000 0.000000 0.00000 0.000000 0.000000 0.000000 0.000000 0.000000 0.000000 0.00000 5.000000 0.000000 0.000000 0.000000 0.000000 0.000000 0.00000 0.000000 0.000000 0.000000 0.000000 0.000000 0.000000 0.00000

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!