Valueerror while plotting graph

while plotting graph using seaborn , i am getting

ValueError: The truth value of a Series is ambiguous. Use a.empty, a.bool(), a.item(), a.any() or a.all().

please help!!!

I guess the error is somewhere else. Without more info we can’t help.

  1. How did you plot?
  2. What did you plot?
  3. Are you sure that what you plot is correct (try and view it)?
  4. Does viewing it corresponds to the values you would like to have plotted?
1 Like