# -*- coding: utf-8 -*-
"""
Created on Sun Jan  2 12:49:49 2022

@author: Sim
"""
import pandas as pd
import stemgraphic

df = pd.read_csv(r'D:\HTEX\Pythonbk\codesdata\bmi.csv')

stemgraphic.stem_graphic(df['height'])

#---- 아래는 아직은 내부 에러
grouped = df.groupby('gender')['height']
glist = grouped.aggregate(lambda x: list(x))
stemgraphic.stem_graphic(glist['F'], glist['M'])


mht = df[df['gender']=='M']['height']
fht = df[df['gender']=='F']['height']
stemgraphic.stem_graphic(df=mht, df2=fht)
