Advertisement
Guest User

Untitled

a guest
Jun 26th, 2019
108
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.35 KB | None | 0 0
  1. for audio_feature in ['ACOUSTIC', 'DANCE', 'DURATION', 'ENERGY', 'INSTRUMENTAL', 'LIVE', 'LOUD', 'SPEECH', 'TEMPO', 'VALENCE']:
  2. count, bin_edges = np.histogram(features_df[audio_feature])
  3. g = sns.FacetGrid(features_df, col='PREFERENCE')
  4. g.map(plt.hist, audio_feature, color="steelblue", bins=bin_edges) #color="coral"
  5. plt.show()
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement