Notice: This page requires JavaScript to function properly.
Please enable JavaScript in your browser settings or update your browser.
Aprende Challenge: Create a Sales Trend Chart | Automating Reports and Visual Insights
Python Automation for Reports and Visual Insights
Sección 1. Capítulo 18
single

single

bookChallenge: Create a Sales Trend Chart

Desliza para mostrar el menú

Tarea

Desliza para comenzar a programar

Given a DataFrame containing sales data over time, create a function that generates a line chart of sales trends using matplotlib and saves the chart as a PNG file.

  • Use the date_col as the x-axis and sales_col as the y-axis in the line chart.
  • Set the chart title to the value of title.
  • Label the x-axis as "Date" and the y-axis as "Sales".
  • Add grid lines to the chart.
  • Save the chart as a PNG image to the path specified by output_path.

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