group by data

Solutions on MaxInterview for group by data by the best coders in the world

showing results for - "group by data"
Elena
09 Feb 2019
1import pandas as pd
2import matplotlib.pyplot as plt
3import seaborn as sns
4dd=pd.melt(df,id_vars=['Group'],value_vars=['Apple','Orange'],var_name='fruits')
5sns.boxplot(x='Group',y='value',data=dd,hue='fruits')
6