I wanted to create a \"High Value Indicator\" column, which says \"Y\" or \"N\" based on two different value columns. I want the new column to have a \"Y\" when Value_1 is >
Try using .loc and .fillna
df.loc[((df['Value_1'] > 1000) |(df['Value_2'] > 15000)), 'High_Value_Ind'] = 'Y' df['High_Value_Ind'] = df['High_Value_Ind'].fillna('N')