Skip to content

Instantly share code, notes, and snippets.

@makispl
Last active March 8, 2020 20:27
Show Gist options
  • Save makispl/6a48431def4d0dbb51bfad5b68176550 to your computer and use it in GitHub Desktop.
Save makispl/6a48431def4d0dbb51bfad5b68176550 to your computer and use it in GitHub Desktop.
# Take a sample from the Pop playlist
df_pop_sample_III = df_pop[df_pop['score'] > df_party['score'].mean()].copy()
# Concatenate the original playlist with the sample
df_party_exp_III = pd.concat([df_party, df_pop_sample_III])
df_party_exp_III.describe()
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment