Skip to content

Instantly share code, notes, and snippets.

@prateekjoshi565
Last active January 30, 2020 10:50
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save prateekjoshi565/a0b40fd9d771a180e7f0a07eea975a60 to your computer and use it in GitHub Desktop.
Save prateekjoshi565/a0b40fd9d771a180e7f0a07eea975a60 to your computer and use it in GitHub Desktop.
# 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