Notice: This page requires JavaScript to function properly.
Please enable JavaScript in your browser settings or update your browser.
Working with Matplotlib | Time Series Essentials
Time Series Essentials
course content

Conteúdo do Curso

Time Series Essentials

bookWorking with Matplotlib

Now that we have explored our dataset and prepared it for our analysis we are going to plot the time series to see its overall trend.

Methods description

  • plt.figure(figsize= (width, height)): This function creates a new figure for plotting with the specified size. The figsize parameter sets the width and height of the figure in inches;

  • plt.plot(data): This function plots the data contained in the DataFrame data. It accepts various arguments to customize the plot, such as color, linestyle, marker, etc;

  • plt.xlabel(label): This function sets the label for the x-axis of the plot. The string label specifies the label text;

  • plt.ylabel(label): This function sets the label for the y-axis of the plot. The string label specifies the label text;

  • plt.title(title): This function sets the title of the plot. The string title specifies the title text.

Tarefa
test

Swipe to show code editor

  1. Use the matplotlib library to plot df.
  2. Create an xlabel with 'Years'.
  3. Create an ylabel with 'No of Air Passengers'.

Mark tasks as Completed
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!

Now that we have explored our dataset and prepared it for our analysis we are going to plot the time series to see its overall trend.

Methods description

  • plt.figure(figsize= (width, height)): This function creates a new figure for plotting with the specified size. The figsize parameter sets the width and height of the figure in inches;

  • plt.plot(data): This function plots the data contained in the DataFrame data. It accepts various arguments to customize the plot, such as color, linestyle, marker, etc;

  • plt.xlabel(label): This function sets the label for the x-axis of the plot. The string label specifies the label text;

  • plt.ylabel(label): This function sets the label for the y-axis of the plot. The string label specifies the label text;

  • plt.title(title): This function sets the title of the plot. The string title specifies the title text.

Tarefa
test

Swipe to show code editor

  1. Use the matplotlib library to plot df.
  2. Create an xlabel with 'Years'.
  3. Create an ylabel with 'No of Air Passengers'.

Mark tasks as Completed
Switch to desktopMude para o desktop para praticar no mundo realContinue de onde você está usando uma das opções abaixo
Seção 1. Capítulo 5
AVAILABLE TO ULTIMATE ONLY
We're sorry to hear that something went wrong. What happened?
some-alt