From 18e96d4e50ff67db46f4aeb0a137b07e0573477c Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Ses=C3=B3stris=20Vieira?= Date: Fri, 5 Apr 2024 16:32:19 -0300 Subject: [PATCH] =?UTF-8?q?Eventos=20por=20UF:=20for=C3=A7a=20todos=20camp?= =?UTF-8?q?os=20para=20int?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- sigi/apps/eventos/views.py | 3 +++ 1 file changed, 3 insertions(+) diff --git a/sigi/apps/eventos/views.py b/sigi/apps/eventos/views.py index 73375a0..040b838 100644 --- a/sigi/apps/eventos/views.py +++ b/sigi/apps/eventos/views.py @@ -579,6 +579,9 @@ def eventos_por_uf(request): (k, [i[1] for i in v]) for k, v in groupby(pivo_regiao.columns, lambda x: x[0]) ] + # Fixar tudo em int + pivo_uf = pivo_uf.astype(int) + pivo_regiao = pivo_regiao.astype(int) # Imprimir context = { "form": form,