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

Contenido del Curso

Time Series Essentials

bookIndex Definition

Methods Description

  • pd.to_datetime(arg): This function converts the argument arg to datetime format. It returns a DataFrame, Series, or ndarray containing datetime objects;

  • set_index(keys): This method sets the DataFrame index using the values of the specified column(s) keys. It returns a new DataFrame with the index set;

  • drop(labels, axis=1, inplace=True): This method removes the specified column(s) from the DataFrame. It returns a new DataFrame if inplace=False, otherwise it modifies the DataFrame in place.

Tarea
test

Swipe to show code editor

  1. Cast the 'Month' column to datetime format;
  2. Set the 'Month' column as an index of the DataFrame;
  3. Drop the 'Month' column.

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

Methods Description

  • pd.to_datetime(arg): This function converts the argument arg to datetime format. It returns a DataFrame, Series, or ndarray containing datetime objects;

  • set_index(keys): This method sets the DataFrame index using the values of the specified column(s) keys. It returns a new DataFrame with the index set;

  • drop(labels, axis=1, inplace=True): This method removes the specified column(s) from the DataFrame. It returns a new DataFrame if inplace=False, otherwise it modifies the DataFrame in place.

Tarea
test

Swipe to show code editor

  1. Cast the 'Month' column to datetime format;
  2. Set the 'Month' column as an index of the DataFrame;
  3. Drop the 'Month' column.

Mark tasks as Completed
Switch to desktopCambia al escritorio para practicar en el mundo realContinúe desde donde se encuentra utilizando una de las siguientes opciones
Sección 1. Capítulo 4
AVAILABLE TO ULTIMATE ONLY
We're sorry to hear that something went wrong. What happened?
some-alt