Skip to content

Instantly share code, notes, and snippets.

@meneguinha
meneguinha / cnpq.json
Created September 1, 2024 16:14
CNPQ - JSON
[{
"ano": "2002",
"grande_area_conhecimento": "CIÊNCIAS AGRÁRIAS",
"total_valor": "18510752.0"
}, {
"ano": "2002",
"grande_area_conhecimento": "CIÊNCIAS BIOLÓGICAS",
"total_valor": "24637343.0"
}, {
"ano": "2002",
@meneguinha
meneguinha / cnpq.sql
Last active September 1, 2024 16:13
CNPQ - Biquery
--Total value paid to research projects in BRAZIL by research field
WITH cnpq AS (SELECT ano, processo, beneficiario, palavra_chave, linha_fomento, modalidade, grande_area_conhecimento, area_conhecimento, subarea_conhecimento, pais_origem, pais_destino, valor FROM `basedosdados.br_cnpq_bolsas.microdados`)
SELECT
ano,
grande_area_conhecimento,
ROUND (SUM(valor),0) AS total_valor
FROM
cnpq
GROUP BY
ano,grande_area_conhecimento
@meneguinha
meneguinha / science_scraper_lite.ipynb
Created August 30, 2024 21:45
Science_Scraper_lite.ipynb
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
@meneguinha
meneguinha / right_left_foot.ipynb
Created August 25, 2024 19:56
Right_Left_foot.ipynb
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.