Notice: This page requires JavaScript to function properly.
Please enable JavaScript in your browser settings or update your browser.
Aprende Challenge: Feature Adoption Heatmap | Feature-Level User Analysis & Clustering
User Behavior Clustering & Feature Engagement with Python
Sección 1. Capítulo 2
single

single

Challenge: Feature Adoption Heatmap

Desliza para mostrar el menú

Tarea

Desliza para comenzar a programar

You are provided with user feature engagement data in a pandas DataFrame with columns user_id, feature, and usage_count. Your task is to:

  • Implement the compute_core_feature_matrix function to create a matrix (as a DataFrame) where each row is a user, each column is a feature, and each cell contains the frequency (sum of usage_count) of usage for that user-feature pair;
  • Implement the plot_core_feature_heatmap function that takes the matrix and visualizes it as a heatmap using seaborn;
  • The heatmap should clearly show which users have adopted which features (breadth), how frequently (frequency), and highlight the intensity of engagement (depth/frequency);
  • You do not need to return or display anything from the functions, but the heatmap must be generated when the plotting function is called.

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 2
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