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 attribute: .dtypes
.
Swipe to show code editor
We have a DataFrame named wine_data
.
- 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 attribute: .dtypes
.
Swipe to show code editor
We have a DataFrame named wine_data
.
- 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!