Notice: This page requires JavaScript to function properly.
Please enable JavaScript in your browser settings or update your browser.
Apprendre Challenge: Cohort Data Preparation | s1
Cohort Analysis with Python
Section 1. Chapitre 3
single

single

Challenge: Cohort Data Preparation

Glissez pour afficher le menu

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.

Tâche

Glissez pour commencer à coder

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.

Solution

Switch to desktopPassez à un bureau pour une pratique réelleContinuez d'où vous êtes en utilisant l'une des options ci-dessous
Tout était clair ?

Comment pouvons-nous l'améliorer ?

Merci pour vos commentaires !

Section 1. Chapitre 3
single

single

Demandez à l'IA

expand

Demandez à l'IA

ChatGPT

Posez n'importe quelle question ou essayez l'une des questions suggérées pour commencer notre discussion

some-alt