Pandas Plot Multiple Lines Based on Per Column Trend

So I have the following data below, so basically every column after tree is a progression of the value of it's values(e.g Tree_0, Tree_1 and etc.)


I want to be able to make a plot that shows all Tree_* values and shows it's trend based on the ave_* values which are on it's next column, how do I do that with matplotlib and pandas?

For example:

Tree_01, linechart starts at 290 goes lower 248 then gows one point lower 247

Tree_02 starts at 261 goes down at 258, goes much lower 221.

I want to represent them all in one chart. Like this: linechart Tree's will be the legend below and the dates will be the ave_* columns. But I dont know how to do this with pandas and matplotlib

Read more here:

Content Attribution

This content was originally published by dogeconholda at Recent Questions - Stack Overflow, and is syndicated here via their RSS feed. You can read the original post over there.

%d bloggers like this: