Manipulate Python Data frame to plot line charts
If you have a pandas DataFrame, let's call it df, for which your columns are X, Y, Z, etc. and your rows are the years in order, you can simply call df.plot() to plot each column as a line with the y axis being the values and the row name giving the x-axis.
I have the following data frame: 
Parameters Year 2016 Year 2017 Year 2018.... 
0)   X           10          12      13
1)    Y           12          12      45
2)    Z           89          23      97
3
.
.
.
I want to make a line chart with the column headers starting from Year 2016 to be on the x-axis and each line on the chart to represent each of the parameters - X, Y, Z
I am using the matplotlib library to make the plot but it is throwing errors.