Conteúdo do Curso
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:
Tarefa
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.
Obrigado pelo seu 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:
Tarefa
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.
Obrigado pelo seu 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:
Tarefa
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.
Obrigado pelo seu 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:
Tarefa
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.