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

book
Column 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
test

Swipe to show code editor

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

book
Column 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
test

Swipe to show code editor

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
Switch to desktopSwitch to desktop for real-world practiceContinue from where you are using one of the options below
We're sorry to hear that something went wrong. What happened?
some-alt