相关疑难解决方法(0)

如何将数据帧中的真假值转换为1表示为true,0表示为false

如何将Dataframe中的真假值转换为1表示为true,0表示为false

COL1  COL2 COL3  COL4
12   TRUE  14    FALSE
13   FALSE  13    TRUE


OUTPUT
12   1  14 0
13   0  13 1
Run Code Online (Sandbox Code Playgroud)

python boolean dataframe pandas

23
推荐指数
4
解决办法
4万
查看次数

标签 统计

boolean ×1

dataframe ×1

pandas ×1

python ×1