Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR PYTHON

how to plot a counter output

import collections
import matplotlib.pyplot as plt
l = ['a', 'b', 'b', 'b', 'c']
w = collections.Counter(l)
plt.bar(w.keys(), w.values())
Source by stackoverflow.com #
 
PREVIOUS NEXT
Tagged: #plot #counter #output
ADD COMMENT
Topic
Name
1+7 =