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 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.
Solution
Switch to desktop for real-world practiceContinue from where you are using one of the options below
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 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.
Solution
Switch to desktop for real-world practiceContinue from where you are using one of the options below
Everything was clear?
Thanks for your feedback!
Section 3. Chapter 5
Switch to desktop for real-world practiceContinue from where you are using one of the options below