I am trying to make a grouped bar chart in plotly python. But I have not been able to get it to work. It has drawn me the general groups (API1, API2, API3) but it draws me the accumulated bars and I want differentiated bars for each of the S1, S2 and S3
| API1 | API2 | API3 | |
|---|---|---|---|
| s1 | 41 | 56 | 48 |
| s2 | 40 | 50 | 45 |
| s3 | 15 | 24 | 8 |
This is the output I have, but I can't get individual bars to be created for each of the groups.



import plotly.express as px;df = df.T;px.bar(df, x=df.index, y=['s1','s2','s3'], barmode='stack')