Comparing Dynamics
Returning to the previous section, you solved the problem of finding the most profitable stores. According to the data, these stores are numbered 20, 4, 14, 13, and 2 (the numbers are saved in the top_stores variable). Let's examine the sales dynamics of these stores.
Swipe to start coding
- Prepare the data for visualization: filter the values in the
dfso that only data for stores with the numbers present in thetop_storeslist remain. Save the resulting data in thedatavariable. - Initialize a line plot with dates on the x-axis, weekly sales on the y-axis, using the
datadataframe. Display a separate line for each store.
Solución
¡Gracias por tus comentarios!
single
Pregunte a AI
Pregunte a AI
Pregunte lo que quiera o pruebe una de las preguntas sugeridas para comenzar nuestra charla
Resumir este capítulo
Explicar el código en file
Explicar por qué file no resuelve la tarea
Awesome!
Completion rate improved to 3.45
Comparing Dynamics
Desliza para mostrar el menú
Returning to the previous section, you solved the problem of finding the most profitable stores. According to the data, these stores are numbered 20, 4, 14, 13, and 2 (the numbers are saved in the top_stores variable). Let's examine the sales dynamics of these stores.
Swipe to start coding
- Prepare the data for visualization: filter the values in the
dfso that only data for stores with the numbers present in thetop_storeslist remain. Save the resulting data in thedatavariable. - Initialize a line plot with dates on the x-axis, weekly sales on the y-axis, using the
datadataframe. Display a separate line for each store.
Solución
¡Gracias por tus comentarios!
single