Last active
June 6, 2021 14:01
-
-
Save Lakshmi-1212/197e522fb71e8d76673cb9c0ffaffb4a to your computer and use it in GitHub Desktop.
All players list
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
# Create a dataframe with all players list | |
all_players_dict = {} | |
out_temp = balldf.apply(lambda x: update_player_list(x),axis=1) | |
all_df = pd.DataFrame({'Players':list(all_players_dict.keys())}) | |
all_df['matches'] = all_df['Players'].apply(lambda x: len(all_players_dict[x])) | |
all_df=all_df.set_index('Players') |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment