📜  seaborn countplot 色调堆积 - Python 代码示例

📅  最后修改于: 2022-03-11 14:45:15.656000             🧑  作者: Mango

代码示例1
df_plot = df.groupby(['class', 'survived']).size().reset_index().pivot(columns='class', index='survived', values=0)

class     First  Second  Third
survived                      
0            80      97    372
1           136      87    119