Skip to content

Instantly share code, notes, and snippets.

@khanhnamle1994
Created May 14, 2018 04:40
Show Gist options
  • Save khanhnamle1994/28aa7795209d0334c3fdb5c4ef3a117c to your computer and use it in GitHub Desktop.
Save khanhnamle1994/28aa7795209d0334c3fdb5c4ef3a117c to your computer and use it in GitHub Desktop.
Get Summary
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