Skip to content

Instantly share code, notes, and snippets.

View marianabianca's full-sized avatar
🧶
coding and knitting

Mariana Dela-Bianca marianabianca

🧶
coding and knitting
View GitHub Profile
---
title: "Regressão Linear, agora com lm"
author: "Nazareno Andrade"
output:
html_notebook:
theme: readable
fig_width: 7
toc: true
toc_float: true
---
@marianabianca
marianabianca / atividade.md
Last active April 28, 2021 16:48
Atividade proposta Hall das Placas Virtual

Atividade proposta Hall das Placas Virtual

Nessa atividade, é esperado que você tente criar uma placa e atualizar a mesma. Fora isso, sinta-se livre para navegar pelo Hall das Placas Virtual e testar fazer o que quiser :)

Ao criar a placa, você pode inventar os dados, não precisam ser reais, ok? Caso precise de um link para a foto da turma, pode utilizar esse: https://placedog.net/800/500?random

No momento, o Hall das Placas Virtual não é um site responsivo, isso quer dizer que ele não funciona bem em smartphones e tablets. Sendo assim, proponho que você utilize um PC ao navegar pelo site.

Hall das Placas Virtual

# coding: utf-8
from queue import PriorityQueue
def find(x):
p = pai[x]
while x != p:
pai[x] = pai[p]
x = p
p = pai[p]
return p
# -*- coding: utf-8 -*-
def calcula_familia(pessoa):
global grafo
global familia
global familias
if pessoa in grafo:
for parente in grafo[pessoa]:
if parente not in familias:
familias[parente] = familia
We can make this file beautiful and searchable if this error is corrected: It looks like row 4 should actually have 25 columns, instead of 15 in line 3.
DT_GERACAO,HH_GERACAO,CD_TP_ESFERA_PARTIDARIA,DS_TP_ESPERA_PARTIDARIA,SG_UF,CD_MUNICIPIO,NM_MUNICIPIO,NR_ZONA,NR_CNPJ_PRESTADOR_CONTA,SG_PARTIDO,NM_PARTIDO,CD_TP_DOCUMENTO,DS_TP_DOCUMENTO,NR_DOCUMENTO,AA_AIDF,NR_AIDF,CD_TP_FORNECEDOR,DS_TP_FORNECEDOR,NR_CPF_CNPJ_FORNECEDOR,NM_FORNECEDOR,DS_GASTO,DT_PAGAMENTO,VR_GASTO,VR_PAGAMENTO,VR_DOCUMENTO
19/10/2019,16:37:25,2,ESTADUAL,PB,#NULO#,#NULO#,#NULO#,09193719000160,AVANTE,AVANTE,5,OUTROS,S/N,#NULO#,#NULO#,F,PESSOA FÍSICA,00894048406,MAYCON HERBERT TOLENTINO BARREIRO,ALUGUÉIS E CONDOMÍNIOS - LOCAÇÃO DE BENS IMÓVEIS - ORDINÁRIAS,2018-12-31,7200,7200,7200
19/10/2019,16:37:25,2,ESTADUAL,PB,#NULO#,#NULO#,#NULO#,35501667000152,DEM,DEMOCRATAS,2,DOCUMENTO FISCAL,000004191,#NULO#,#NULO#,J,PESSOA JURÍDICA,04863475000162,BEZERRA E LUCENA LTDA,"TRANSPORTES E VIAGENS - COMBUSTÍVEIS, ÓLEOS E LUBRIFICANTES - ORDINÁRIAS",2018-12-10,1938.96,1938.96,1938.96
19/10/2019,16:37:25,2,ESTADUAL,PB,#NULO#,#NULO#,#NULO#,35501667000152,DEM,DEMOCRATAS,2,DOCUMENTO FISCAL,000121796/1051061,#NU
@marianabianca
marianabianca / colors.csv
Last active December 5, 2019 16:20
percepcao
We can't make this file beautiful and searchable because it's too large.
image,era,c1,c2,c3,c4,c5,c6,c7,c8,c9,c10,c11,c12,c13,c14,c15,c16,c17,c18,c19,c20,c21,c22,c23,c24,c25,c26,c27,c28,c29,c30,c31,c32,c33,c34,c35,c36,c37,c38,c39,c40,c41,c42,c43,c44,c45,c46,c47,c48,c49,c50,c51,c52,c53,c54,c55,c56,c57,c58,c59,c60,c61,c62,c63,c64,c65,c66,c67,c68,c69,c70,c71,c72,c73,c74,c75,c76,c77,c78,c79,c80,c81,c82,c83,c84,c85,c86,c87,c88,c89,c90,c91,c92,c93,c94,c95,c96,c97,c98,c99,c100,c101,c102,c103,c104,c105,c106,c107,c108,c109,c110,c111,c112,c113,c114,c115,c116,c117,c118,c119,c120,c121,c122,c123,c124,c125,c126,c127,c128,c129,c130,c131,c132,c133,c134,c135,c136,c137,c138,c139,c140,c141,c142,c143,c144,c145,c146,c147,c148,c149,c150
@marianabianca
marianabianca / test.csv
Last active November 28, 2019 14:40
Predição do desempenho de times nos campeonatos europeus
We can't make this file beautiful and searchable because it's too large.
ID,League,Date,HomeTeam,AwayTeam,B365H,B365D,B365A,BWH,BWD,BWA,IWH,IWD,IWA,LBH,LBD,LBA,PSH,PSD,PSA,WHH,WHD,WHA,VCH,VCD,VCA,BbMx>2.5,BbAv>2.5,BbMx<2.5,BbAv<2.5,Year,HS,HST,HF,HC,HY,HR,AS,AST,AF,AC,AY,AR
ENG010117#0,Germany,09/09/16,Schalke 04,Bayern Munich,0.1,0.18181818181818185,0.7692307692307692,0.09090909090909093,0.17391304347826084,0.7692307692307692,0.1176470588235294,0.2,0.7407407407407407,0.1,0.19047619047619047,0.7692307692307692,0.09225092250922508,0.16977928692699493,0.7575757575757576,0.1111111111111111,0.18181818181818185,0.7692307692307692,0.09090909090909093,0.17391304347826084,0.7751937984496123,1.61,1.55,2.62,2.38,2017,[11],[3],[15],[5],[2],[0],[11],[3],[15],[5],[2],[0]
@marianabianca
marianabianca / train.csv
Created November 13, 2019 14:15
CDP - Predição do desempenho de times nos campeonatos europeus
We can't make this file beautiful and searchable because it's too large.
ID,League,Date,HomeTeam,AwayTeam,B365H,B365D,B365A,BWH,BWD,BWA,IWH,IWD,IWA,LBH,LBD,LBA,PSH,PSD,PSA,WHH,WHD,WHA,VCH,VCD,VCA,BbMx>2.5,BbAv>2.5,BbMx<2.5,BbAv<2.5,Year,HS,HST,HF,HC,HY,HR,AS,AST,AF,AC,AY,AR,Result
GER310812#0,Germany,31/08/12,Mainz,Greuther Furth,0.5555555555555556,0.2857142857142857,0.2222222222222222,0.53475935828877,0.2857142857142857,0.2309468822170901,0.5555555555555556,0.29411764705882354,0.25,0.5464480874316939,0.2857142857142857,0.2309468822170901,0.5376344086021505,0.27027027027027023,0.2127659574468085,0.5464480874316939,0.2857142857142857,0.2309468822170901,0.5405405405405405,0.27027027027027023,0.2173913043478261,2.09,1.98,1.94,1.83,2013,[8.0],[3.0],[13.0],[8.0],[2.0],[0.0],[8.0],[3.0],[13.0],[8.0],[2.0],[0.0],0
Cod_setor V009 mulheres
261110105000001 243.02 3
261110105000002 286.92 41
261110105000003 397.14 35
261110105000004 284.95 31
261110105000005 282.87 60
261110105000006 228.18 6
261110105000007 246.45 26
261110105000008 276.35 26
261110105000009 392.97 55
@marianabianca
marianabianca / test.csv
Created October 17, 2019 02:21
lab cdp cartola 2014
We can make this file beautiful and searchable if this error is corrected: It looks like row 10 should actually have 33 columns, instead of 8 in line 9.
atleta_id,rodada,clube_id,participou,posicao_id,jogos_num,pontos_num,media_num,preco_num,variacao_num,partida_id,mando,titular,substituido,tempo_jogado,FS,PE,A,FT,FD,FF,G,I,PP,RB,FC,GC,CA,CV,SG,DD,DP,GS
68873,37,262.0,1,1.0,29,10.1,4.81,9.88,0.22,180166.0,1,1.0,0,1.0,0,3,0,0,0,0,0,0,0,0,0,0,0,0,1,2,0,0
78086,37,262.0,0,1.0,0,0.0,0.0,2.0,0.0,180166.0,1,0.0,0,0.0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0
89258,37,262.0,0,1.0,0,0.0,0.0,1.0,0.0,180166.0,1,0.0,0,0.0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0
37701,37,262.0,1,2.0,33,1.7,2.82,10.09,0.26,180166.0,1,1.0,1,0.5,0,1,0,0,0,0,0,0,0,0,2,0,1,0,1,0,0,0
50453,37,262.0,1,2.0,8,10.0,7.2,6.15,1.55,180166.0,1,0.0,1,0.5,0,1,0,0,0,1,0,0,0,3,1,0,0,0,1,0,0,0
69177,37,262.0,0,2.0,3,0.0,2.4,4.18,0.0,180166.0,1,0.0,0,0.0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0
71602,37,262.0,1,2.0,27,5.4,3.47,6.47,0.82,180166.0,1,1.0,0,1.0,2,6,0,0,0,0,0,0,0,1,1,0,0,0,1,0,0,0
68958,37,262.0,1,3.0,31,7.5,3.67,15.31,1.48,180166.0,1,1.0,0,1.0,2,3,0,0,0,0,0,0,0,2,2,0,0,0,1,0,0,0
74103,37,262.0,0,3.0,0,0.0,0.0