df_data[pd.isna(df_data)==False] = 0df_data[pd.isna(df_data)] = 1df_data = df_data.astype(np.int32)