How can I do a where clause for C3? I want to do in the scenario below:
df1 = pd.read_excel(path)
for index, row in df1.iterrows():
C1 = row[2]
C2 = row[7]
C3 = if (row[12]) == 0 then 'blue' else 'green'
List.append([C1, C2, C_3])
C3 = if (row[12]) == 0 then 'blue' else 'green' it is not working. I need something similar