I'm new to Python, my problem is I have two dataframes and I need to compare if the last row of the two are the same, both dataframes are the same size (have the same columns).
A B C D A B C D
1 1 1 1 1 1 1 1
2 2 2 2 2 3 3 3
I was thinking of something like
if df_csv.tail(1) != df.tail(1):
print ('Not equal')
else:
print ('Equal')
but trows this error
ValueError: The truth value of a DataFrame is ambiguous. Use a.empty, a.bool(), a.item(), a.any() or a.all().