Home > Enterprise >  Two or more quantities on same scatter plot seaborn
Two or more quantities on same scatter plot seaborn

Time:01-18

I am trying to do a scatter plot for the following data with all columns in one plot.

Data for the dataframe

Actually I imported this data from csv file and saved in a dataframe df_inv and then I saved it in variable tips

tips = df_inv
sns.scatterplot(data=tips, x=df_inv.index, y = "a")
plt.show()

I want to add columns b, c, and d on the same plot but I am unable to find the right code. I have tried y = ["a", "b", "c", "d", "e"] but it didn't worked. I want my result in the following format ideally not all circles but some x, *, and other shapes.

Ideal output

please help me achieving the target.

CodePudding user response:

You could re-shape your data in a different dataframe with enter image description here

  •  Tags:  
  • Related