Last active
January 30, 2020 10:50
-
-
Save prateekjoshi565/a0b40fd9d771a180e7f0a07eea975a60 to your computer and use it in GitHub Desktop.
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
# prepare dataframe for Delhi Capitals | |
df_dc = df[df['team']=="Delhi Capitals"] | |
df_dc['partners'] = [sorted([i,j]) for i,j in zip(df_dc['player_1'], df_dc['player_2'])] | |
df_dc['partnership'] = ["".join(i) for i in df_dc['partners']] | |
df_dc.head() |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment