col = 'color_num'
data_df[[col, 'AdoptionSpeed']].groupby(col)['AdoptionSpeed'].value_counts()
data_df[[col, 'AdoptionSpeed']].groupby(col)['AdoptionSpeed'].value_counts().unstack().plot(kind='bar', figsize=(20, 4))
value
col = 'color_num'
data_df[[col, 'AdoptionSpeed']].groupby(col)['AdoptionSpeed'].value_counts()
data_df[[col, 'AdoptionSpeed']].groupby(col)['AdoptionSpeed'].value_counts().unstack().plot(kind='bar', figsize=(20, 4))
value
本文标题:plot stack value
本文链接:https://www.haomeiwen.com/subject/cyrgbhtx.html
网友评论