1

I want make comparative study between two thing, by drawing this simultaneously, since second product launch after first product, the binning is gain difficulty to plot, I want to compare apple to apple (in same timeframe), I assume biweekly will be the best.

import matplotlib.pyplot as plt
plt.figure(1)
plt.xlabel('time')
plt.ylabel('sales')
plt.figure(1)
plt.subplot(111)
plt.hist((subs['pay_at'].dropna().values), bins=63)
plt.subplot(111)
plt.hist((subs['last_pay'].dropna().values), bins=10)
plt.show()

Here's the result

enter image description here

How to make one bin is two weeks in length?

Diziet Asahi
  • 38,379
  • 7
  • 60
  • 75
Nabih Ibrahim Bawazir
  • 631
  • 2
  • 15
  • 27

0 Answers0