Notice: This page requires JavaScript to function properly.
Please enable JavaScript in your browser settings or update your browser.
Column Names and Data Types | Analyzing the Data
Pandas First Steps
course content

Course Content

Pandas First Steps

Pandas First Steps

1. The Very First Steps
2. Reading Files in Pandas
3. Analyzing the Data

bookColumn Names and Data Types

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.

Switch to desktopSwitch to desktop for real-world practiceContinue from where you are using one of the options below
Everything was clear?

How can we improve it?

Thanks for your feedback!

Section 3. Chapter 5
toggle bottom row

bookColumn Names and Data Types

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.

Switch to desktopSwitch to desktop for real-world practiceContinue from where you are using one of the options below
Everything was clear?

How can we improve it?

Thanks for your feedback!

Section 3. Chapter 5
toggle bottom row

bookColumn Names and Data Types

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.

Switch to desktopSwitch to desktop for real-world practiceContinue from where you are using one of the options below
Everything was clear?

How can we improve it?

Thanks for your feedback!

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.

Switch to desktopSwitch to desktop for real-world practiceContinue from where you are using one of the options below
Section 3. Chapter 5
Switch to desktopSwitch to desktop for real-world practiceContinue from where you are using one of the options below
some-alt