Sección 1. Capítulo 3
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_monthcolumn for each transaction, based on the month of the user's first purchase. - Create a
cohort_indexcolumn representing the number of months since the user's cohort month for each transaction. - Add a
total_orderscolumn indicating the cumulative number of orders for each user up to and including the current transaction.
Solución
¿Todo estuvo claro?
¡Gracias por tus comentarios!
Sección 1. Capítulo 3
single
Pregunte a AI
Pregunte a AI
Pregunte lo que quiera o pruebe una de las preguntas sugeridas para comenzar nuestra charla