Cohort Analysis in Python

Поделиться
HTML-код
  • Опубликовано: 27 окт 2024

Комментарии • 19

  • @denistalko6585
    @denistalko6585 2 года назад

    It's perfect! Thank you very much!!

  • @dolusolana2127
    @dolusolana2127 2 года назад

    Here's a crown👑. You deserve it.

  • @nithinma8697
    @nithinma8697 3 года назад

    Thank you for the amazing presentation.

  • @evedickson2496
    @evedickson2496 3 года назад

    Great tutorial... very insightful

  • @fiyanhandoyo4033
    @fiyanhandoyo4033 3 года назад +1

    Thank you for amazing presentation. But I have any question. for 'CohortIndex' column, why the column was calculate with this (year_diff * 12 +month_diff +1)?

    • @shubhamnehete8020
      @shubhamnehete8020 3 года назад

      It is calculated in order to get the number of customer retained for each cohort month.

  • @AltiusMedia
    @AltiusMedia 4 года назад +1

    Sorry, from where it comes the invoice_year in the year_diff? That's not clear and is giving me a mistake!

    • @DATABOI
      @DATABOI  4 года назад

      In the create cohort section we create two variables using the function in the previous cell.

  • @james1981mmm
    @james1981mmm 3 года назад +1

    hi nick, I was a little confused about when you calculate corhort_index why +1?

    • @DSting2
      @DSting2 3 года назад +1

      If we count without +1 the first cohort_index is 0. For example, when you need to count retention rate for 6th month, you'll use cohort_index 5. But if we add +1, indexes starts from 1 and if you need retention rate for specific month, you'll just take it from the same cohort_index

  • @renatocagno9967
    @renatocagno9967 3 года назад

    Hello Nick, I have tried to install datetime to conda, but it seams there's isn't an option to MacOS. Do you know what I have missed? Tks!

  • @Faridahjames
    @Faridahjames 2 года назад

    I am attempting to do this in a weekly bases. But my cohort_Count looks wrong. I made the cohort index week_diff *7 days

  • @AltiusMedia
    @AltiusMedia 4 года назад

    Hello I get error on the step year_diff. The error comes because cohort_year is not defined. From where it comes this variable? Thanks!!!

  • @random5955
    @random5955 3 года назад +1

    Hi Nick, thanks a lot for another great video! Do I understand correctly that for a cohort analysis, one always needs some kind of user/customer ID? I couldn't find and pull it from FB, Google Ads or GA. So, I guess I can't do any cohort analysis, unfortunately, except I get data with customer IDs from the client's backend?

    • @СтепанЦыбин-ю9д
      @СтепанЦыбин-ю9д 3 года назад +1

      You need turn on user_id function in Google Analitics, export your data and after you can use pandas for your task.

  • @prakhargupta8356
    @prakhargupta8356 3 года назад

    Hi,
    Could you please explain year_diff * 12 +month_diff +1 formula in creating CohortIndex ?

  • @ryanjosephlock
    @ryanjosephlock 3 года назад

    Liking your content a lot, thank you. Do you have a link to that python application spreadsheet? I'd love to copy pasta that if possible? Cheers

  • @mohitraheja7708
    @mohitraheja7708 4 года назад

    pls upload the data set also which is used in the video

    • @DATABOI
      @DATABOI  4 года назад

      If you follow the video you'll find the data...