我正在使用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)
我该怎么办?