Notice: This page requires JavaScript to function properly.
Please enable JavaScript in your browser settings or update your browser.
Lära Challenge: Cohort Data Preparation | s1
Cohort Analysis with Python
Avsnitt 1. Kapitel 3
single

single

Challenge: Cohort Data Preparation

Svep för att visa menyn

You are about to apply your knowledge from previous chapters on cohort assignment and feature engineering. Your task is to prepare a sample transactional dataset for cohort analysis.

Uppgift

Svep för att börja koda

Prepare a transactional dataset for cohort analysis by engineering new features for cohort assignment and user activity.

  • Assign a cohort_month column for each transaction, based on the month of the user's first purchase.
  • Create a cohort_index column representing the number of months since the user's cohort month for each transaction.
  • Add a total_orders column indicating the cumulative number of orders for each user up to and including the current transaction.

Lösning

Switch to desktopByt till skrivbordet för praktisk övningFortsätt där du är med ett av alternativen nedan
Var allt tydligt?

Hur kan vi förbättra det?

Tack för dina kommentarer!

Avsnitt 1. Kapitel 3
single

single

Fråga AI

expand

Fråga AI

ChatGPT

Fråga vad du vill eller prova någon av de föreslagna frågorna för att starta vårt samtal

some-alt