TypeError: can't convert type 'str' to numerator/denominator
问题 I am having trouble with some variable types in my code. The error that I get now is: TypeError: can't convert type 'str' to numerator/denominator The code line in question is the following: valor_anual[data[0]['Dados'][json_date][0]['geodsg']][year_code] = statistics.mean(valor_mensal_aux) Here is a snippet of my code to give you guys context: valor_anual = [0][0] for city_code in city_codes: for year_code in year_codes: valor_mensal_aux = [] for month_code in month_codes: url_imob = Request