下面有一个数据集,我想对Income
Category
执行单变量分析,如图所示。这里的点在数字范畴中1
被视为Male
,而{
有什么办法可以解决这个问题吗。在
Income Population Number Category
54 77 1 A
23 88 1 A
44 87 0 B
55 88 0 B
66 89 1 B
73 90 0 A
12 89 1 C
34 9 0 C
54 77 1 A
23 88 1 A
44 87 0 B
55 88 0 B
66 89 1 B
73 90 0 A
12 89 1 C
34 9 0 C
我不确定你的问题是否清楚。但是,以下图表通常用于进行单变量和双变量分析。在
如果将数据放入熊猫数据框中,则可以轻松地将雄性和雌性的值分开,例如(只需使用
Income
和Number
):然后您可以使用例如示例here来绘制条形图。这个plot.ly公司包对于这类事情也很好,如示例here。在
相关问题 更多 >
编程相关推荐