Answers for "group by data"

-1

group by data

import pandas as pd
import matplotlib.pyplot as plt
import seaborn as sns
dd=pd.melt(df,id_vars=['Group'],value_vars=['Apple','Orange'],var_name='fruits')
sns.boxplot(x='Group',y='value',data=dd,hue='fruits')
Posted by: Guest on August-21-2021

Python Answers by Framework

Browse Popular Code Answers by Language