Skip to content

Instantly share code, notes, and snippets.

@nportinari
nportinari / 0510_caderno_eleitoral.ipynb
Last active October 9, 2022 21:43
0510_caderno_eleitoral.ipynb
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
@nportinari
nportinari / calculadora_ipca.ipynb
Created March 17, 2020 19:05
Calculadora_IPCA
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
@nportinari
nportinari / verba_ministerio_saude.ipynb
Last active March 12, 2020 17:40
Verba - Ministério da Saúde
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
@nportinari
nportinari / pega-laranja.ipynb
Last active February 23, 2019 14:03
Pega-laranja
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
@nportinari
nportinari / pesquisas-eleitorais.ipynb
Last active June 14, 2020 23:30
Pesquisas eleitorais
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
@nportinari
nportinari / dados-anatel-jul.ipynb
Last active March 23, 2019 19:04
Dados Anatel (jul).ipynb
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
@nportinari
nportinari / dados-anatel-jul.ipynb
Created September 11, 2018 22:54
Dados Anatel (jul).ipynb
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
@nportinari
nportinari / strip_ctn.txt
Last active September 12, 2018 19:32
Contains sem acentos (Pandas)
#Função para procurar substrings em um dataframe sem se preocupar com a acentuação
import re
import unicodedata
def strip_ctn(x, y):
# Tira os acentos e confere se x contém o valor y
# O x aponta para a referência de localização no DataFrame, o y, para a string procurada