Kernel: Python 3 (Anaconda 5)
In [1]:
In [2]:
Crimes eleitorais (ce)
In [3]:
/ext/anaconda5/lib/python3.6/site-packages/matplotlib/figure.py:445: UserWarning: Matplotlib is currently using module://ipykernel.pylab.backend_inline, which is a non-GUI backend, so cannot show the figure.
% get_backend())
In [4]:
/ext/anaconda5/lib/python3.6/site-packages/matplotlib/figure.py:445: UserWarning: Matplotlib is currently using module://ipykernel.pylab.backend_inline, which is a non-GUI backend, so cannot show the figure.
% get_backend())
In [5]:
/ext/anaconda5/lib/python3.6/site-packages/matplotlib/figure.py:445: UserWarning: Matplotlib is currently using module://ipykernel.pylab.backend_inline, which is a non-GUI backend, so cannot show the figure.
% get_backend())
In [6]:
In [7]:
In [8]:
/ext/anaconda5/lib/python3.6/site-packages/matplotlib/figure.py:445: UserWarning: Matplotlib is currently using module://ipykernel.pylab.backend_inline, which is a non-GUI backend, so cannot show the figure.
% get_backend())
In [9]:
ce: OrderedDict([('efetivo', 0.16666666666666663)])
/ext/anaconda5/lib/python3.6/site-packages/matplotlib/figure.py:445: UserWarning: Matplotlib is currently using module://ipykernel.pylab.backend_inline, which is a non-GUI backend, so cannot show the figure.
% get_backend())
In [10]:
ce: OrderedDict([('efetivo', 0.16666666666666663)])
/ext/anaconda5/lib/python3.6/site-packages/matplotlib/figure.py:445: UserWarning: Matplotlib is currently using module://ipykernel.pylab.backend_inline, which is a non-GUI backend, so cannot show the figure.
% get_backend())
Crimes comuns (cc)
In [11]:
/ext/anaconda5/lib/python3.6/site-packages/matplotlib/figure.py:445: UserWarning: Matplotlib is currently using module://ipykernel.pylab.backend_inline, which is a non-GUI backend, so cannot show the figure.
% get_backend())
In [12]:
/ext/anaconda5/lib/python3.6/site-packages/matplotlib/figure.py:445: UserWarning: Matplotlib is currently using module://ipykernel.pylab.backend_inline, which is a non-GUI backend, so cannot show the figure.
% get_backend())
In [13]:
/ext/anaconda5/lib/python3.6/site-packages/matplotlib/figure.py:445: UserWarning: Matplotlib is currently using module://ipykernel.pylab.backend_inline, which is a non-GUI backend, so cannot show the figure.
% get_backend())
In [14]:
/ext/anaconda5/lib/python3.6/site-packages/matplotlib/figure.py:445: UserWarning: Matplotlib is currently using module://ipykernel.pylab.backend_inline, which is a non-GUI backend, so cannot show the figure.
% get_backend())
In [15]:
/ext/anaconda5/lib/python3.6/site-packages/matplotlib/figure.py:445: UserWarning: Matplotlib is currently using module://ipykernel.pylab.backend_inline, which is a non-GUI backend, so cannot show the figure.
% get_backend())
In [16]:
In [17]:
In [18]:
/ext/anaconda5/lib/python3.6/site-packages/matplotlib/figure.py:445: UserWarning: Matplotlib is currently using module://ipykernel.pylab.backend_inline, which is a non-GUI backend, so cannot show the figure.
% get_backend())
In [19]:
cc: OrderedDict([('efetivo', 1.4457648401826486)])
/ext/anaconda5/lib/python3.6/site-packages/matplotlib/figure.py:445: UserWarning: Matplotlib is currently using module://ipykernel.pylab.backend_inline, which is a non-GUI backend, so cannot show the figure.
% get_backend())
Presença do crime organizado (co)
In [20]:
/ext/anaconda5/lib/python3.6/site-packages/matplotlib/figure.py:445: UserWarning: Matplotlib is currently using module://ipykernel.pylab.backend_inline, which is a non-GUI backend, so cannot show the figure.
% get_backend())
In [21]:
/ext/anaconda5/lib/python3.6/site-packages/matplotlib/figure.py:445: UserWarning: Matplotlib is currently using module://ipykernel.pylab.backend_inline, which is a non-GUI backend, so cannot show the figure.
% get_backend())
In [22]:
In [23]:
In [24]:
/ext/anaconda5/lib/python3.6/site-packages/matplotlib/figure.py:445: UserWarning: Matplotlib is currently using module://ipykernel.pylab.backend_inline, which is a non-GUI backend, so cannot show the figure.
% get_backend())
In [25]:
OrderedDict([('efetivo', 0.16666666666666663)])
/ext/anaconda5/lib/python3.6/site-packages/matplotlib/figure.py:445: UserWarning: Matplotlib is currently using module://ipykernel.pylab.backend_inline, which is a non-GUI backend, so cannot show the figure.
% get_backend())
Número de eleitores
In [26]:
/ext/anaconda5/lib/python3.6/site-packages/matplotlib/figure.py:445: UserWarning: Matplotlib is currently using module://ipykernel.pylab.backend_inline, which is a non-GUI backend, so cannot show the figure.
% get_backend())
In [27]:
/ext/anaconda5/lib/python3.6/site-packages/matplotlib/figure.py:445: UserWarning: Matplotlib is currently using module://ipykernel.pylab.backend_inline, which is a non-GUI backend, so cannot show the figure.
% get_backend())
In [28]:
In [29]:
In [30]:
/ext/anaconda5/lib/python3.6/site-packages/matplotlib/figure.py:445: UserWarning: Matplotlib is currently using module://ipykernel.pylab.backend_inline, which is a non-GUI backend, so cannot show the figure.
% get_backend())
In [31]:
OrderedDict([('efetivo', 0.1722222222222222)])
/ext/anaconda5/lib/python3.6/site-packages/matplotlib/figure.py:445: UserWarning: Matplotlib is currently using module://ipykernel.pylab.backend_inline, which is a non-GUI backend, so cannot show the figure.
% get_backend())
Eleitores indígenas
In [32]:
/ext/anaconda5/lib/python3.6/site-packages/matplotlib/figure.py:445: UserWarning: Matplotlib is currently using module://ipykernel.pylab.backend_inline, which is a non-GUI backend, so cannot show the figure.
% get_backend())
In [33]:
/ext/anaconda5/lib/python3.6/site-packages/matplotlib/figure.py:445: UserWarning: Matplotlib is currently using module://ipykernel.pylab.backend_inline, which is a non-GUI backend, so cannot show the figure.
% get_backend())
In [34]:
In [35]:
In [36]:
/ext/anaconda5/lib/python3.6/site-packages/matplotlib/figure.py:445: UserWarning: Matplotlib is currently using module://ipykernel.pylab.backend_inline, which is a non-GUI backend, so cannot show the figure.
% get_backend())
In [37]:
OrderedDict([('efetivo', 0.9999999999999999)])
/ext/anaconda5/lib/python3.6/site-packages/matplotlib/figure.py:445: UserWarning: Matplotlib is currently using module://ipykernel.pylab.backend_inline, which is a non-GUI backend, so cannot show the figure.
% get_backend())
Modelo final
In [38]:
/ext/anaconda5/lib/python3.6/site-packages/matplotlib/figure.py:445: UserWarning: Matplotlib is currently using module://ipykernel.pylab.backend_inline, which is a non-GUI backend, so cannot show the figure.
% get_backend())
In [39]:
/ext/anaconda5/lib/python3.6/site-packages/matplotlib/figure.py:445: UserWarning: Matplotlib is currently using module://ipykernel.pylab.backend_inline, which is a non-GUI backend, so cannot show the figure.
% get_backend())
In [40]:
/ext/anaconda5/lib/python3.6/site-packages/matplotlib/figure.py:445: UserWarning: Matplotlib is currently using module://ipykernel.pylab.backend_inline, which is a non-GUI backend, so cannot show the figure.
% get_backend())
In [41]:
/ext/anaconda5/lib/python3.6/site-packages/matplotlib/figure.py:445: UserWarning: Matplotlib is currently using module://ipykernel.pylab.backend_inline, which is a non-GUI backend, so cannot show the figure.
% get_backend())
In [42]:
/ext/anaconda5/lib/python3.6/site-packages/matplotlib/figure.py:445: UserWarning: Matplotlib is currently using module://ipykernel.pylab.backend_inline, which is a non-GUI backend, so cannot show the figure.
% get_backend())
In [43]:
/ext/anaconda5/lib/python3.6/site-packages/matplotlib/figure.py:445: UserWarning: Matplotlib is currently using module://ipykernel.pylab.backend_inline, which is a non-GUI backend, so cannot show the figure.
% get_backend())
In [44]:
In [45]:
In [46]:
/ext/anaconda5/lib/python3.6/site-packages/matplotlib/figure.py:445: UserWarning: Matplotlib is currently using module://ipykernel.pylab.backend_inline, which is a non-GUI backend, so cannot show the figure.
% get_backend())
In [47]:
0.16666666666666663
In [48]:
1.4457648401826486
In [49]:
0.16666666666666663
In [50]:
0.1722222222222222
In [51]:
0.9999999999999999
In [52]:
OrderedDict([('efetivo', 1.8083081921559525)])
/ext/anaconda5/lib/python3.6/site-packages/matplotlib/figure.py:445: UserWarning: Matplotlib is currently using module://ipykernel.pylab.backend_inline, which is a non-GUI backend, so cannot show the figure.
% get_backend())
In [53]:
OrderedDict([('efetivo', 1.8083081921559525)])
/ext/anaconda5/lib/python3.6/site-packages/matplotlib/figure.py:445: UserWarning: Matplotlib is currently using module://ipykernel.pylab.backend_inline, which is a non-GUI backend, so cannot show the figure.
% get_backend())
Função para entrada e processamento dos dados
In [54]:
In [55]:
1.9999999999999991
Cálculo da planilha
In [56]:
In [57]:
In [58]:
longitude | latitude | cod_localidade_tse | nom_localidade | nom_bairro | num_local | nom_local | des_endereco | codigo | lqtd_secoes | ... | indigenas | crimes_eleitorais | boca_de_urna | roubo | furto | desacato | desobediencia | CV | ind_cid | GRUPOS | |
---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
0 | -61.504226 | -10.870787 | 89960 | RONDOLÂNDIA | CENTRO | 1015 | ESCOLA ESTADUAL OLAVO BILAC | RUA MATHILDE KLEMS, S/N | 61899601015 | 10 | ... | 0 | 0 | 0 | 0 | 2 | 1 | 0 | 0 | 0 | 336 |
1 | -60.941759 | -10.475339 | 89960 | RONDOLÂNDIA | ZONA RURAL | 1066 | ESCOLA ZAWA KAREY PANGYJY | ALDEIA INDÍGENA ZORÓ | 61899601066 | 1 | ... | 267 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 337 |
2 | -60.180703 | -14.107886 | 90867 | NOVA LACERDA | GLEBA SANTA AMÉLIA | 1040 | ESCOLA MUNICIPAL VALE DO GUAPORÉ | COMUNIDADE SANTA AMÉLIA | 61908671040 | 1 | ... | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 444 |
3 | -59.967301 | -15.014093 | 91090 | VILA BELA DA SANTÍSSIMA TRINDADE | JARDIM AEROPORTO | 1341 | CRECHE AVIAOZINHO | AVENIDA MARTIMIANO RIBEIRO DA FONSECA, S/N | 25910901341 | 1 | ... | 0 | 0 | 1 | 0 | 13 | 0 | 1 | 0 | 0 | 440 |
4 | -59.950224 | -15.003089 | 91090 | VILA BELA DA SANTÍSSIMA TRINDADE | CENTRO | 1171 | CAMARA MUNICIPAL DE VILA BELA DA SANTISSIMA TR... | AV. SÃO LUIZ, S/N, VILA BELA DA SS. TRINDADE | 25910901171 | 2 | ... | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 439 |
5 rows × 21 columns
In [59]:
In [60]:
longitude -53.5287
latitude -16.9427
cod_localidade_tse 90077
nom_localidade ALTO GARÇAS
nom_bairro VILA BONITO
num_local 1023
nom_local E.E.P.S.G. DEPUTADO OSCAR SOARES
des_endereco RUA ARARAQUARA, 149
codigo 45900771023
lqtd_secoes 9
lqtd_aptos 2861
indigenas 0
crimes_eleitorais 0
boca_de_urna 0
roubo 0
furto 0
desacato 0
desobediencia 0
CV 0
ind_cid 0
GRUPOS 71
efetivo 2
Name: 1289, dtype: object
In [61]:
2.0
In [62]:
In [63]:
0 2.000000
1 0.077778
2 0.077778
3 1.000000
4 0.461111
Name: efetivo, dtype: float64
In [64]: