I want to create a multi series line plot showing how the occurrences of a data-frame element change over time:
I have two lists in which I have joined in a dataframe:
df = pd.DataFrame(
{'Date': datelist,
'Category': catlist
})
I have then grouped the dataframe to show the counts of each occurrence over time:
df = df.groupby(['Date', 'Category']).size()
print df
This returns something that looks like this:
Date Category
13/02/2018 clean 2
suspicious 1
14/02/2018 clean 2
19/02/2018 clean 2
I now want to create a multi-series line plot for each category type, showing how the count changes over date.
I'm really not sure how to do this using matplotlib
