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

Contenido del Curso

Time Series Essentials

bookDataframe Exploration

In Python, the shape attribute of a pandas DataFrame returns a tuple representing the dimensions of the DataFrame. The dtypes attribute returns the data types of the columns in the DataFrame. In Python, the dtypes attribute of a pandas DataFrame returns the data types of the columns in the DataFrame.

Methods description

  • .shape: This attribute contains a tuple representing the dimensions of the DataFrame, where the first element is the number of rows and the second element is the number of columns. It does not take any arguments;
  • .dtypes: This method contains a Series containing the data type of each column in the DataFrame. It does not take any arguments.

Tarea

Print the shape of the DataFrame and data types of all its columns.

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!

In Python, the shape attribute of a pandas DataFrame returns a tuple representing the dimensions of the DataFrame. The dtypes attribute returns the data types of the columns in the DataFrame. In Python, the dtypes attribute of a pandas DataFrame returns the data types of the columns in the DataFrame.

Methods description

  • .shape: This attribute contains a tuple representing the dimensions of the DataFrame, where the first element is the number of rows and the second element is the number of columns. It does not take any arguments;
  • .dtypes: This method contains a Series containing the data type of each column in the DataFrame. It does not take any arguments.

Tarea

Print the shape of the DataFrame and data types of all its columns.

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 3
AVAILABLE TO ULTIMATE ONLY
some-alt