Expected STR instance, float found


When a list is converted to a string by a join, it is a type recognition error, so use the following code to cast it

test=''.join(str(i) for i in data_positionAdvantage)

 

Read More: