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

single

bookChallenge: Create a Sales Trend Chart

Deslize para mostrar o menu

Tarefa

Deslize para começar 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.

Solução

Switch to desktopMude para o desktop para praticar no mundo realContinue de onde você está usando uma das opções abaixo
Tudo estava claro?

Como podemos melhorá-lo?

Obrigado pelo seu feedback!

Seção 1. Capítulo 18
single

single

Pergunte à IA

expand

Pergunte à IA

ChatGPT

Pergunte o que quiser ou experimente uma das perguntas sugeridas para iniciar nosso bate-papo

some-alt