你很亲密,需要 unstack :
unstack
df.groupby(['department','status'])['c_name'].count().unstack().plot(kind='bar', stacked=True)