I am trying to have a single graph displaying a 10 series. These are divided in group such as this simple example :
Group A | Group B time(h) S1 S2 S3 S4 S5 S6 0 1 3 1 3 4 5 24 2 1 3 4 2 1 48 3 2 2 1 2 2
How can I add these 6 series in a single graph and categorise their group A/B by colour ?
Thank you so much!
You can try seaborn:
import seaborn as sns sns.lineplot(data=df.stack(level=[0,1]).reset_index(name='value'), x='time', y='value', hue='level_1', style='level_2' )
And you would get:
1.4m articles
1.4m replys
5 comments
57.0k users