不为空的值改为0空值填1

tech2025-07-22  7

df_data[pd.isna(df_data)==False] = 0 df_data[pd.isna(df_data)] = 1 df_data = df_data.astype(np.int32)
最新回复(0)