Why am I getting the error: ValueError: The truth value
of a Series is ambiguous. Use a.empty, a.bool(), a.item(), a.any()
or a.all()
Fielding is a DataFrame, but I am not sure why I am getting this
error. Any help would be appreciated!
RAR = []
for i in range(0,len(Fielding)):
position = (Fielding['POS'][i])
value = 0
if position == 'C':
value = (9.0/150.0) * (Fielding['GS'][i])
elif position == 'SS':
value = (7.0/150.0) * (Fielding['GS'][i])
elif position == '2B':
value = (3.0/150.0)...