A ideia de trabalhar esses dados veio do Pedro Markun em uma postagem no facebook. Os primeiros arquivos em formato JSON foram gerados experimentando pelo REPL do Python e pelo terminal do Linux. O problema é recuperar isso quando alguém pede o código. O Capi Etheriel levantou alguns pontos importantes sobre ter todos os códigos embasando as visualizações e outras análises que possam vir a ser feitas com esses dados. Então, no repositório veradores_sp estão os scripts de conversão do TXT em JSON além do TXT de entrada e o JSON final. Como o TXT usado nele sofreu algumas correções em relação ao original, nesse texto será descrito o motivo de cada alteração e c
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
gnome-screenshot -h | |
Uso: | |
gnome-screenshot [OPÇÃO...] Tirar uma foto da tela | |
Opções de ajuda: | |
-h, --help Exibe opções de ajuda | |
--help-all Exibe todas as opções de ajuda | |
--help-gtk Mostra as opções do GTK+ | |
Opções de aplicativo: |
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Nome | Legislaturas | |
---|---|---|
Aloísio Greenhalgh | 1 | |
Altimar Ribeiro de Lima | 3 | |
André Nunes Júnior | 3 | |
Angelo Bortolo | 1 | |
Anis Aidar | 1 | |
Antenor Bettarello | 2 | |
Arnaldo de Moraes Arruda | 1 | |
Camilo Ashcar | 1 | |
Cantídio Sampaio | 2 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
The Zen of Python, by Tim Peters | |
Beautiful is better than ugly. | |
Explicit is better than implicit. | |
Simple is better than complex. | |
Complex is better than complicated. | |
Flat is better than nested. | |
Sparse is better than dense. | |
Readability counts. | |
Special cases aren't special enough to break the rules. |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
def look_and_say(numbers): | |
if len(numbers) == 1: | |
return '1' + numbers | |
say = 1 | |
out = '' | |
numbers += 'X' | |
for curr, _next in zip(numbers, numbers[1:]): | |
if curr == _next: | |
say += 1 |
Passo a passo para explorar os dados usando o db browser (http://sqlitebrowser.org/)
New Database:
- Dar um nome para o banco. Eu chamei só
"censo"
mesmo rs talvez"censo2016"
fosse melhor (: - Ele vai abrir uma interface para criação de tabelas. Podemos clicar em "cancelar" para ignorar essa etapa pois vamos gerar as tabelas a partir de arquivos csv
Import > Table from CSV file:
- encoding:
iso-8859-1
OlderNewer