I have a data-frame:
df1 = pd.DataFrame({
'YE': [342233.58, 254571.80, 2980.53, 0, 4469.02, 5951.07],
'Q1': [346233.58, -24571.80, 2970.53, 0, 4469.02, 5951.07],
'Q2': [346233.58, -24571.80, 2970.53, 0, 4469.02, 5951.07],
'Q3': [346233.58, -24571.80, 2970.53, 0, 4469.02, 5951.07],
'Q4': [346233.58, -24571.80, 2970.53, 0, 4469.02, 5951.07],
'INFO': ['', '', '', '', '', '',],
})
I would like to return a string 'not ok' in the column INFO if the sum of 'YE' + 'Q1' + 'Q2' + 'Q3' + 'Q4' equals 0.
Else, the string should be: 'ok'.
How do I do that?