我用python 3.7.6
运行,我有以下dataframe
:
col_1 col_2 col_3 col_4
GP 1 1 1 1
MIN 1 1 1 1
PTS 1 1 1 1
FGM 1 1 0 1
FGA 0 1 0 0
FG% 0 1 1 1
3P Made 0 1 1 0
AST 0 1 1 0
STL 0 1 0 0
BLK 0 1 1 0
TOV 0 0 1 0
我想将dataframe
绘制为scatter plot or other (dot's plot)
,其中:
X轴-数据帧索引
Y轴-数据帧列
图上的点与dataframe
中的值一致(1-在图上显示,0不显示)
我怎么做
我不确定分散性,但您可以使用
imshow
来显示二进制值:输出:
更新:也可以分散:
输出:
相关问题 更多 >
编程相关推荐