Skip to content

Instantly share code, notes, and snippets.

Embed
What would you like to do?
# 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