Pandas: Ternärer bedingter Bediener zum Festlegen eines Wertes in einem Datenrahmen
df['result'] = np.where(df1['col1'] > df1['col2'], 1, 0)
Xenophobic Xenomorph
df['result'] = np.where(df1['col1'] > df1['col2'], 1, 0)
pd['irr'] = np.where(pd['cs']*0.63 > pd['irr'], 1.0, 0.0)