PANDAS: operator bersyarat ternary untuk menetapkan nilai di dataframe
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)