Last active
March 26, 2020 20:48
-
-
Save aravindpai/64bed14020e108273c95dec625e90f20 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#importing library | |
from collections import Counter | |
#computing frequency of each note | |
freq = dict(Counter(notes_)) | |
#library for visualiation | |
import matplotlib.pyplot as plt | |
#consider only the frequencies | |
no=[count for _,count in freq.items()] | |
#set the figure size | |
plt.figure(figsize=(5,5)) | |
#plot | |
plt.hist(no) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment