Course Content
Data Manipulation using pandas
Data Manipulation using pandas
2. Preprocessing Data: Part II
Challenge
Try to apply the aquired knowledge to fix the first problematic column.
Task
Swipe to begin your solution
You are given the Statvillage dataset. You need to convert the 'totinch'
column' values to float
type by replacing commas by dots. Follow the next steps:
- Select the
'totinch'
column. - Apply the
str
accessor to the chosen column. - Replace the
,
symbols in the column values with the.
. - Convert type to
float
.
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 1. Chapter 5
Challenge
Try to apply the aquired knowledge to fix the first problematic column.
Task
Swipe to begin your solution
You are given the Statvillage dataset. You need to convert the 'totinch'
column' values to float
type by replacing commas by dots. Follow the next steps:
- Select the
'totinch'
column. - Apply the
str
accessor to the chosen column. - Replace the
,
symbols in the column values with the.
. - Convert type to
float
.
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 1. Chapter 5
Switch to desktop for real-world practiceContinue from where you are using one of the options below