Course Content
Pandas First Steps
Pandas First Steps
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:
Swipe to show code editor
We have a dataframe named data_frame
.
- Get the column names that this dataframe contains.
- Get the data types of these columns from the data from this dataframe.
Thanks for your feedback!
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:
Swipe to show code editor
We have a dataframe named data_frame
.
- Get the column names that this dataframe contains.
- Get the data types of these columns from the data from this dataframe.
Thanks for your feedback!
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:
Swipe to show code editor
We have a dataframe named data_frame
.
- Get the column names that this dataframe contains.
- Get the data types of these columns from the data from this dataframe.
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:
Swipe to show code editor
We have a dataframe named data_frame
.
- Get the column names that this dataframe contains.
- Get the data types of these columns from the data from this dataframe.