In [24]:
cohorts['CohortPeriod']=cohortperiod
cohorts.head(20)
Out[24]:
FirstOrder OrderPeriod TotalUsers CohortPeriod
0 2009-01 2009-01 22.0 0
1 2009-01 2009-02 8.0 1
2 2009-01 2009-03 10.0 2
3 2009-01 2009-04 9.0 3
4 2009-01 2009-05 10.0 4
5 2009-01 2009-06 8.0 5
6 2009-01 2009-07 8.0 6
7 2009-01 2009-08 7.0 7
8 2009-01 2009-09 7.0 8
9 2009-01 2009-10 7.0 9
10 2009-01 2009-11 7.0 10
11 2009-01 2009-12 8.0 11
12 2009-01 2010-01 11.0 12
13 2009-01 2010-02 7.0 13
14 2009-01 2010-03 6.0 14
15 2009-02 2009-02 15.0 0
16 2009-02 2009-03 3.0 1
17 2009-02 2009-04 5.0 2
18 2009-02 2009-05 1.0 3
19 2009-02 2009-06 4.0 4