0

I have dataframe: df when i can perform the operation if df!=0: it throughs error ValueError: The truth value of a DataFrame is ambiguous. Use a.empty, a.bool(), a.item(), a.any() or a.all().

  • 2
    Please show more of your code. Also, please add a sample of the dataframe you're working with to the question. –  Dec 07 '21 at 17:43
  • Does this answer your question? [Truth value of a Series is ambiguous. Use a.empty, a.bool(), a.item(), a.any() or a.all()](https://stackoverflow.com/questions/36921951/truth-value-of-a-series-is-ambiguous-use-a-empty-a-bool-a-item-a-any-o) – BigBen Dec 07 '21 at 17:45

0 Answers0