Course Content
Pandas First Steps
Pandas First Steps
2. Reading Files in Pandas
3. Analyzing the Data
Viewing the DataQuiz: Using HeadQuiz: Head, Tail, and SampleExploring the DatasetColumn Names and Data TypesFinding Null ValuesQuiz: Identifying Null ValuesChallenge: Dropping Null ValuesChallenge: Filling Null ValuesQuiz: Null ValuesDescribing the Datamax() and min()Quiz: Statistical Operationssum() and count()Unique Values
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
.
Task
Swipe to start coding
You are given a DataFrame
named wine_data
.
- Get the column names that this
DataFrame
contains and store the result in thecolumn_names
variable. - Get the data types of these columns from this
DataFrame
and store the result in thedata_types
variable.
Solution
Everything was clear?
Thanks for your feedback!
Section 3. Chapter 5
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
.
Task
Swipe to start coding
You are given a DataFrame
named wine_data
.
- Get the column names that this
DataFrame
contains and store the result in thecolumn_names
variable. - Get the data types of these columns from this
DataFrame
and store the result in thedata_types
variable.
Solution
Everything was clear?
Thanks for your feedback!
Section 3. Chapter 5