Notice: This page requires JavaScript to function properly.
Please enable JavaScript in your browser settings or update your browser.
Information on the Data 2/2 | Analyzing the Data
Pandas First Steps

Information on the Data 2/2

To see all the column names as a list, we have to use this line of code.

We can also get a summary of all the types of data that are in the dataframe. For this, we have to use the following method: dtypes. Let's look at the example:

Task

We have a dataframe named data_frame.

  1. Get the column names that this dataframe contains.
  2. Get the data types of these columns from the data from this dataframe.

Everything was clear?

Section 3. Chapter 5
toggle bottom row
course content

Course Content

Pandas First Steps

Information on the Data 2/2

To see all the column names as a list, we have to use this line of code.

We can also get a summary of all the types of data that are in the dataframe. For this, we have to use the following method: dtypes. Let's look at the example:

Task

We have a dataframe named data_frame.

  1. Get the column names that this dataframe contains.
  2. Get the data types of these columns from the data from this dataframe.

Everything was clear?

Section 3. Chapter 5
toggle bottom row
some-alt