Skip to content

Instantly share code, notes, and snippets.

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