from FileLoader import FileLoader from HowManyMedalsByCountry import howManyMedalsByCountry fl = FileLoader() df = fl.load("../resources/athlete_events.csv") print(howManyMedalsByCountry(df, 'France'))
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)
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')
from FileLoader import FileLoader from HowManyMedalsByCountry import howManyMedalsByCountry loader = FileLoader() data = loader.load("./athlete_events.csv") print('Brazilian data:') howManyMedalsByCountry(data, 'Brazil')