Date post: | 04-Aug-2015 |
Category: |
Technology |
Upload: | awwaiid |
View: | 568 times |
Download: | 0 times |
require 'rubypython'RubyPython.startplt = RubyPython.import('matplotlib.pyplot')
# The 'left' slices it down to year-monthorder_counts = Order .group("left(created_at, 7)") .count .values
plt.plot(order_counts)
plt.show