First time posting here. I have been recently been introduced to seaborn and plotly python libraries. They produce some great plots.
I have been struggling recreating a seaborn plot in plotly. I have a dataframe that looks like this example: Example data set
In seaborn if I use the following code:
sns.catplot(data=test, x='time', y='y', hue='group', kind='point')
I get a great graph in which the groups have automatically been averaged and plots two lines with error bars. I have two lines on my graph of group 'a' and 'b' showing the average value over each timepoint: Seaborn example graph
If I try to replicate this in plotly using:
px.line(test,x='time', y='y', color='group')
I get the individual lines for each group (three for 'a' and three for 'b') like this:plotly example
Is there way to plot the averages in plotly, rather than the individual points. I can not figure out how to get plotly to plot the averages of each group like seaborn does.
Any help would be greatly appreciated.
Hope this makes sense.
Thanks