Platform
Resources
Pricing
Sign in
Get started
Eric Careca
Workspace
Fork
Public
By
Eric Careca
Edited
Sep 25, 2023
1 fork
Importers
Insert cell
Insert cell
Insert cell
// lista = requisicao.consulta_entes()
Insert cell
// lista_estados = lista
// .filter((d) => (d.cod_ibge > 1) & (d.cod_ibge < 100))
// .map((d) => d.cod_ibge)
Insert cell
// lista_capitais = lista
// .filter((d) => (d.capital == 1) & (d.cod_ibge != 5300108))
// .map((d) => d.cod_ibge)
Insert cell
// rreo_estados = requisicao.consulta_rreo(lista_estados, [2022], ["RREO"])
Insert cell
// rreo_estados_flat = rreo_estados.flat()
Insert cell
// tabela = rreo_estados_flat
Insert cell
// anexos_estados_2023 = [...new Set(rreo_estados_flat.map((d) => d.anexo))]
Insert cell
// rreo_uniao = requisicao.consulta_rreo([1], [2023], ["RREO"])
Insert cell
// rreo_uniao_flat = rreo_uniao.flat()
Insert cell
// anexos_uniao_2022 = [...new Set(rreo_uniao_flat.map((d) => d.anexo))]
Insert cell
// unicos_rreo_estados = [
// ...new Set(
// rreo_estados_flat.filter((v) => v.periodo == 6).map((d) => d.anexo)
// )
// ]
// rreo_filter = rreo_estados_flat.filter(
// (v) =>
// (v.periodo == 6) &
// (v.anexo == "RREO-Anexo 01") &
// (v.cod_conta == "ReceitaTributaria") &
// (v.coluna == "Até o Bimestre (c)")
// )
Insert cell
// rreo_corrente = rreo_estados_flat.filter(
// (v) =>
// (v.periodo == 6) &
// (v.anexo == "RREO-Anexo 01") &
// (v.cod_conta == "ReceitasCorrentes") &
// (v.coluna == "Até o Bimestre (c)")
// )
Insert cell
// rreo_ICMS = rreo_estados_flat.filter(
// (v) =>
// (v.periodo == 6) &
// (v.anexo == "RREO-Anexo 03") &
// (v.coluna == "TOTAL (ÚLTIMOS 12 MESES)") &
// (v.conta == "ICMS")
// )
Insert cell
// rreo_I_T_CM = rreo_estados_flat.filter(
// (v) =>
// (v.periodo == 6) &
// (v.anexo == "RREO-Anexo 03") &
// (v.coluna == "TOTAL (ÚLTIMOS 12 MESES)") &
// (v.conta == "Impostos, Taxas e Contribuições de Melhoria")
// )
Insert cell
// lista_estados.map((d) => {
// let tributaria = rreo_filter.filter((c) => c.cod_ibge == d);
// let corrente = rreo_corrente.filter((c) => c.cod_ibge == d);
// let icms = rreo_ICMS.filter((c) => c.cod_ibge == d);
// let I_T_CM = rreo_I_T_CM.filter((c) => c.cod_ibge == d);
// let v = {};
// v.nome = tributaria[0].uf;
// v.ReceitaTributaria = tributaria[0].valor;
// v.ReceitaCorrente = corrente[0].valor;
// v.Icms = icms[0].valor;
// v.I_T_CM = I_T_CM[0].valor;
// v.check = v.ReceitaTributaria == v.I_T_CM;
// return v;
// })
Insert cell
// rgf = requisicao.consulta_rgf(lista_capitais, [2022], "Q", ["RGF"])
Insert cell
// rgfflat = rgf.flat()
Insert cell
dca
=
{
let
retorno
=
await
requisicao
.
consulta_dca
(
[
11
,
12
,
13
,
14
,
32
,
33
,
51
,
52
,
53
]
,
2022
)
;
let
lista
=
retorno
.
flat
(
)
;
return
lista
;
}
Insert cell
Purpose-built for displays of data
Observable is your go-to platform for exploring data and creating expressive data visualizations. Use reactive JavaScript notebooks for prototyping and a collaborative canvas for visual data exploration and dashboard creation.
Try it for free
Learn more
Fork
View
Export
Edit
Add comment
Select
Duplicate
Copy link
Embed
Delete
JavaScript
Markdown
HTML
requisicao
Edit
Add comment
Copy import
Select
Duplicate
Copy link
Embed
Delete
JavaScript
Markdown
HTML
Add comment
Select
Duplicate
Copy link
Embed
Delete
JavaScript
Markdown
HTML
Add comment
Select
Duplicate
Copy link
Embed
Delete
JavaScript
Markdown
HTML
Add comment
Select
Duplicate
Copy link
Embed
Delete
JavaScript
Markdown
HTML
Add comment
Select
Duplicate
Copy link
Embed
Delete
JavaScript
Markdown
HTML
Add comment
Select
Duplicate
Copy link
Embed
Delete
JavaScript
Markdown
HTML
Add comment
Select
Duplicate
Copy link
Embed
Delete
JavaScript
Markdown
HTML
Add comment
Select
Duplicate
Copy link
Embed
Delete
JavaScript
Markdown
HTML
Add comment
Select
Duplicate
Copy link
Embed
Delete
JavaScript
Markdown
HTML
Add comment
Select
Duplicate
Copy link
Embed
Delete
JavaScript
Markdown
HTML
Add comment
Select
Duplicate
Copy link
Embed
Delete
JavaScript
Markdown
HTML
Add comment
Select
Duplicate
Copy link
Embed
Delete
JavaScript
Markdown
HTML
Add comment
Select
Duplicate
Copy link
Embed
Delete
JavaScript
Markdown
HTML
Add comment
Select
Duplicate
Copy link
Embed
Delete
JavaScript
Markdown
HTML
Add comment
Select
Duplicate
Copy link
Embed
Delete
JavaScript
Markdown
HTML
Add comment
Select
Duplicate
Copy link
Embed
Delete
JavaScript
Markdown
HTML
Add comment
Select
Duplicate
Copy link
Embed
Delete
JavaScript
Markdown
HTML
Add comment
Select
Duplicate
Copy link
Embed
Delete
JavaScript
Markdown
HTML
dca
Add comment
Copy import
Select
Duplicate
Copy link
Embed
Delete
JavaScript
Markdown
HTML