'How do I plot my cohorts by week and month without changing the underlying pivot table data?
I'm doing a cohort analysis. The cohorts are tied to the day that the user was created in the database.
Is there a way to plot this such that I can group cohorts together by week and month? I'd prefer not to change the pivot table data if possible.
periods_weeks 0.0 1.0 2.0 3.0 4.0 5.0 6.0
cohort
2021-03-01 2192.0 NaN 10.0 NaN NaN NaN NaN
2021-06-02 270.0 141.0 46.0 71.0 96.0 63.0 57.0
2021-06-03 338.0 97.0 62.0 30.0 10.0 21.0 15.0
2021-06-04 17801.0 7611.0 6342.0 6062.0 5064.0 4731.0 4518.0
2021-06-05 4105.0 1123.0 982.0 859.0 597.0 486.0 448.0
Sources
This article follows the attribution requirements of Stack Overflow and is licensed under CC BY-SA 3.0.
Source: Stack Overflow
| Solution | Source |
|---|
