2016-10-19 2 views

답변

3
df = pd.DataFrame(dict(Subsidy=[3, 3, 3], 
         Bonus=[1, 1, 1], 
         Expense=[2, 2, 2]), 
        list('ABC')) 

df 

enter image description here

ax = df[['Subsidy', 'Bonus']].plot.bar(stacked=True, position=1, 
          width=.2, ylim=[0, 8], color=['orange', 'red']) 
df[['Expense']].plot.bar(ax=ax, position=0, width=.2, color=['green']) 

enter image description here

+0

안녕하세요, 내가 뭘 목록의 이름에 날짜를 사용하려면? –

관련 문제