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

single

Challenge: Cohort Data Preparation

Pyyhkäise näyttääksesi valikon

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.

Tehtävä

Pyyhkäise aloittaaksesi koodauksen

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.

Ratkaisu

Switch to desktopVaihda työpöytään todellista harjoitusta vartenJatka siitä, missä olet käyttämällä jotakin alla olevista vaihtoehdoista
Oliko kaikki selvää?

Miten voimme parantaa sitä?

Kiitos palautteestasi!

Osio 1. Luku 3
single

single

Kysy tekoälyä

expand

Kysy tekoälyä

ChatGPT

Kysy mitä tahansa tai kokeile jotakin ehdotetuista kysymyksistä aloittaaksesi keskustelumme

some-alt