For Example:
I have columns A and B, and I need to do a quality check to make sure that Column B is Null every time Column A is 'Cash'. I don't wan't it to output every row, I just want to know (True/False) if Column B is Null for every time Column A is 'Cash'.
My current (not working) code:
mylist = []
while [df['A'] == 'Cash'] and [df['B'] is None]:
mylist.append('Pass')
else:
mylist.append('Fail')
if 'Fail' in mylist:
print 'Column A Pass'
else:
print 'Column A Pass'