Dec-11-2020, 03:08 PM
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().