Python Forum
Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Help with a ValueError
#3
Whoops, I totally forgot to copy that:


ValueError                                Traceback (most recent call last)
<ipython-input-7-3522fdff8944> in <module>
     28         dateRange.append(i) # adds newest date to the array
     29 
---> 30         if currentMax == max(Range, default = 0):
     31             counter += 1
     32 

/opt/anaconda3/lib/python3.7/site-packages/pandas/core/generic.py in __nonzero__(self)
   1328     def __nonzero__(self):
   1329         raise ValueError(
-> 1330             f"The truth value of a {type(self).__name__} is ambiguous. "
   1331             "Use a.empty, a.bool(), a.item(), a.any() or a.all()."
   1332         )

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


Messages In This Thread
Help with a ValueError - by devansing - Dec-11-2020, 02:36 PM
RE: Help with a ValueError - by deanhystad - Dec-11-2020, 02:56 PM
RE: Help with a ValueError - by devansing - Dec-11-2020, 03:08 PM
RE: Help with a ValueError - by palladium - Dec-12-2020, 07:24 AM
RE: Help with a ValueError - by devansing - Dec-13-2020, 05:40 PM

Forum Jump:

User Panel Messages

Announcements
Announcement #1 8/1/2020
Announcement #2 8/2/2020
Announcement #3 8/6/2020