I did try the transpose option, however, I was wondering if there was someway to avoid doing that (?), as I noticed that it messes up the column heading after transpose and if I were to have 100+ columns to transpose, maybe it would be a bit tiring and not efficient to run the transpose.
I think this might be the only way to do it with plotly.express.
If you don’t want to change the df, I think you will have to do the grouping opeartions which px does under the hood yourself and create the traces, colors and so on using plotly.graph_objects. IMO this would be “worse” than transposing the df.
I understand, was just curious if there was any alternate way to go about it. Thank you very much!
As an extension, I need help with colors here. For each group, I want the max to be ‘red’ and rest ‘grey’.
I naturally think of a ‘if’ fucntion, but don’t know how to execute it, across all groups
That’s correct and that was solved.
Later, however upon further thinking, I thought it would be nice to highlight just the max value color for each subject, to allow focus on that and rest to be grey.