0

Hello after some research I didn't manage to solve the following problem, and also couldn't finde something similar in the forums.

I have a dataframe with different sample codnitions in rows and mulitple datapoints as well as some calculations and categorical stuff in columns. Minimal reproducible looks something like this:

Index    R1  R2  R3  hue
condition1  3   4   2   control
condition2  2   2   2   sample
condition3  7   3   6   sample

Now I want to to make a boxplot out of this data what works nicely with

seaborn.boxplot(data=df.iloc[:,0:3].transpose())

But now I want to use hue to color it in a good way. What I understand I need to set x and y in order to use hue instead of leaving this to seaborn. So I want something like seaborn.boxplot(data=df,x=df.index and y=df.iloc[:,0:3],hue="hue") My first problem is when setting the index as the x I get the error "Horizontal orientation requires numeric x variable." And then I expect a second problem with passing multiple columns to y?!

Thanks for any help.

Tokeru
  • 29
  • 5

0 Answers0