def find_every_player_hot(): stats = find_all_players(1) l2d = dict_to_list2d(stats)[1:] i = 0 for l in l2d: print(i) names = l[1].lower().split(',') # assert len(names) == 2 find_hot(names[1].strip() + UNDER + names[0].strip()) i += 1
def get_overall_pie(season): stats = find_all_players() l2d = dict_to_list2d(stats)[1:] starter = [] bench = [] for l in l2d: pie = get_pie(l[0], season, ptype=PIEType.overall) if pie[0] == STARTER: starter.append(pie[1]) elif pie[0] == BENCH: bench.append(pie[1]) # list2d_to_csv(starter, 'starter_pie') # list2d_to_csv(bench, 'bench_pie') return [starter, bench]
def find_every_player(): stats = find_all_players(1) l2d = dict_to_list2d(stats)[1:] for l in l2d: player_profile(l[0])
def find_every_player(): stats = find_all_players(1) l2d = dict_to_list2d(stats)[1:] for l in l2d: find_player(l[0], PlayerType.Base)