I have one data frame named last_df that has only 1 record.
while I am trying to check the value of a column it gave me the following error:
if last_df[last_df['status'] == 'COMPLETE']:
pass
ValueError: The truth value of a DataFrame is ambiguous. Use a.empty, a.bool(), a.item(), a.any() or a.all().
what is the issue over here?
See Question&Answers more detail:
os 与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…