Notice: This page requires JavaScript to function properly.
Please enable JavaScript in your browser settings or update your browser.
Aprende Challenge: Cohort Data Preparation | s1
Cohort Analysis with Python
Sección 1. Capítulo 3
single

single

Challenge: Cohort Data Preparation

Desliza para mostrar el menú

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.

Tarea

Desliza para comenzar a programar

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.

Solución

Switch to desktopCambia al escritorio para practicar en el mundo realContinúe desde donde se encuentra utilizando una de las siguientes opciones
¿Todo estuvo claro?

¿Cómo podemos mejorarlo?

¡Gracias por tus comentarios!

Sección 1. Capítulo 3
single

single

Pregunte a AI

expand

Pregunte a AI

ChatGPT

Pregunte lo que quiera o pruebe una de las preguntas sugeridas para comenzar nuestra charla

some-alt