我正在尝试在Python中绘制散点图,并使用数据框中存储的“color”列进行颜色编码。但是我遇到了无效的RGBA参数错误。
以下是我的代码和数据:
以下是我的代码和数据:
df.plot.scatter(x='x', y='y', c='color')
id x type color y
0 109 570.4 ha r 500.8
1 110 632.4 ha r 567.2
2 111 399.4 of b 487.2
3 112 250.2 of b 444.4
...
'color'
。 - Sumner Evans