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

single

Challenge: Cohort Data Preparation

Veeg om het menu te tonen

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.

Taak

Veeg om te beginnen met coderen

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.

Oplossing

Switch to desktopSchakel over naar desktop voor praktijkervaringGa verder vanaf waar je bent met een van de onderstaande opties
Was alles duidelijk?

Hoe kunnen we het verbeteren?

Bedankt voor je feedback!

Sectie 1. Hoofdstuk 3
single

single

Vraag AI

expand

Vraag AI

ChatGPT

Vraag wat u wilt of probeer een van de voorgestelde vragen om onze chat te starten.

some-alt