Why do I get
"TypeError: can't multiply sequence by non-int of type 'float'" with the code below?
"TypeError: can't multiply sequence by non-int of type 'float'" with the code below?
#add ranges to list of tuple pairs ranges = [] a_values = [] b_values = [] for x in params: a = min(df[params][x]) a = a - (a*.25) b = max(df[params][x]) b = b + (b*.25) ranges.append((a,b)) for x in range(len(df['Player'])): if df['Player'][x] == 'Bruno Fernandes': a_values = df.iloc[x].values.tolist() if df['Player'][x] == 'K. De Bruyne': b_values = df.iloc[x].values.tolist() a_values = a_values[1:] b_values = b_values[1:] values = [a_values,b_values]
buran write Mar-30-2021, 06:17 PM:
Please, use proper tags when post code, traceback, output, etc. This time I have added tags for you.
See BBcode help for more info.
Please, use proper tags when post code, traceback, output, etc. This time I have added tags for you.
See BBcode help for more info.