Created
January 9, 2020 16:13
-
-
Save fnneves/d57830d38da9fb2f60cfd312cacc65a9 to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
def days_diff(df): | |
df['CohortIndex_d'] = (df['last_active_date'] - df['signup_date']).dt.days |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment