i'm a newbie in Pandas. I'm actually struggling with Cohort analysis.
I have :
Cohort_Group Cohort_period
2015-06 2015-06 1
2015-07 2015-07 2
2015-08 2015-08 2
2015-09 2015-09 1
2015-10 2015-10 1
2015-11 2015-11 1
2015-12 2015-12 1
Name: Cohort_period, dtype: int64
And i want to obtain :
Cohort_Group Cohort_period
2015-06 2015-06 1
2015-07 2
2015-08 2
2015-09 1
2015-10 1
2015-11 1
2015-12 1
Name: client, dtype: int64
I tried to use pandas help with multiindex but i didn't sort it out !