示例#1
0
from FileLoader import FileLoader
from HowManyMedalsByCountry import howManyMedalsByCountry

fl = FileLoader()
df = fl.load("../resources/athlete_events.csv")
print(howManyMedalsByCountry(df, 'France'))
示例#2
0
from FileLoader import FileLoader
from HowManyMedalsByCountry import howManyMedalsByCountry

loader = FileLoader()
data = loader.load('../resources/athlete_events.csv')

medal = howManyMedalsByCountry(data, 'United States')
print(medal)

medal = howManyMedalsByCountry(data, 'France')
print(medal)
示例#3
0
from FileLoader import FileLoader
loader = FileLoader()

path2 = r"C:\Users\Gabriel\Desktop\Mes documents - Google Drive\DATA\19\day04\athlete_events.csv"
data = loader.load(path2)

from HowManyMedalsByCountry import howManyMedalsByCountry
howManyMedalsByCountry(data, 'Greece')
示例#4
0
from FileLoader import FileLoader
from HowManyMedalsByCountry import howManyMedalsByCountry
loader = FileLoader()

data = loader.load("./athlete_events.csv")
print('Brazilian data:')
howManyMedalsByCountry(data, 'Brazil')