In [13]:
cohorts=grouped['UserId'].nunique()
cohorts.head()
Out[13]:
FirstOrder  OrderPeriod
2009-01     2009-01        22
            2009-02         8
            2009-03        10
            2009-04         9
            2009-05        10
Name: UserId, dtype: int64