如何将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
python boolean dataframe pandas
boolean ×1
dataframe ×1
pandas ×1
python ×1