Created
May 14, 2018 04:40
-
-
Save khanhnamle1994/28aa7795209d0334c3fdb5c4ef3a117c to your computer and use it in GitHub Desktop.
Get Summary
This file contains 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 get_summary_n(squad_list, squad_name, nationality_list): | |
summary = [] | |
for i in nationality_list: | |
count = 0 | |
for j in squad_list: | |
# for overall rating | |
O_temp_rating, _ = get_best_squad_n(formation = j, nationality = i, measurement = 'Overall') | |
summary.append([i, squad_name[count], O_temp_rating.round(2)]) | |
count += 1 | |
return summary |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment