This file contains hidden or 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
import numpy as np | |
import pandas as pd | |
df = pd.read_csv("https://pycourse.s3.amazonaws.com/bike-sharing.csv") | |
print('Qual o tamanho desse dataset?') | |
print(df.info()) | |
print('Qual a média da coluna windspeed?') | |
print(df['windspeed'].mean()) | |
print('Qual a média da coluna temp?') |
This file contains hidden or 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
from random import choice | |
from lib import * | |
from time import sleep | |
escolha = str(selecaoPalavra().strip()) # Recebe uma palavra aleatoria de uma lista na lib | |
totJogadas = 6 # Contador de tentativas | |
contVitorias = contDerrotas = 0 | |
letrasUsadas = [] | |
letrasCertas = [] | |
lstPalavra = [] | |
plural = ['tentativas', 'vezes', 'tentativa', 'vez'] |
This file contains hidden or 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 selecaoPalavra(): | |
from random import choice | |
forca = ["Caneca", "Celular", "Clube", "Copo", "Doce", "Elefante", "Escola", "Estojo", "Faca", "Foto", "Garfo", "Geleia", | |
"Girafa", "Janela", "Limonada", "Mae", "Meia", "Noite", "Oculos", "onibus", "Ovo", "Pai", "Pao", "Parque", | |
"Passarinho", "Peixe", "Pijama", "Rato", "Umbigo", "Amarelo", "Amiga", "Amor", "Ave", "Aviao", "Avo", "Balao", | |
"Bebe", "Bolo", "Branco", "Cama"] | |
selecao = choice(forca) | |
return str(selecao.upper()) | |
This file contains hidden or 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 selecaoPalavra(): | |
from random import choice | |
forca = ["Caneca", "Celular", "Clube", "Copo", "Doce", "Elefante", "Escola", "Estojo", "Faca", "Foto", "Garfo", "Geleia", | |
"Girafa", "Janela", "Limonada", "Mae", "Meia", "Noite", "Oculos", "onibus", "Ovo", "Pai", "Pao", "Parque", | |
"Passarinho", "Peixe", "Pijama", "Rato", "Umbigo", "Amarelo", "Amiga", "Amor", "Ave", "Aviao", "Avo", "Balao", | |
"Bebe", "Bolo", "Branco", "Cama"] | |
selecao = choice(forca) | |
return str(selecao.upper()) | |
This file contains hidden or 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
from random import choice | |
from lib import * | |
from time import sleep | |
escolha = str(selecaoPalavra().strip()) # Recebe uma palavra aleatoria de uma lista na lib | |
totJogadas = 6 # Contador de tentativas | |
contVitorias = contDerrotas = 0 | |
letrasUsadas = [] | |
letrasCertas = [] | |
lstPalavra = [] | |
plural = ['tentativas', 'vezes', 'tentativa', 'vez'] |