我想以百分比的形式在堆积条形图中表示此信息在x轴上,我想要年龄组,在y轴上,想要代表每个年龄组中性别百分比的值年龄由数据集中的垃圾箱表示我到目前为止
这是我的代码:
c = ds.groupby(['Age','Gender'])['Gender'].count() d=(((c /c.groupby(level=0).sum())*100).round()).astype('int64') d