I am trying to compare two players by showing a line graph of their points over the years. I want a line for each player, on the x-axis the Year, and on the y-axis the average Pts for that year. I can use a groupby to get the numbers but can't plot them separately on a graph.
Name Year Pts
2264 Mike Evans 2017 10.7
2266 T.Y. Hilton 2017 10.0
2440 Mike Evans 2013 7.5
10271 T.Y. Hilton 2013 12.4
10499 T.Y. Hilton 2013 1.3

