Challenge
Try to apply the aquired knowledge to fix the first problematic column.
Task
Swipe to start coding
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
Everything was clear?
Thanks for your feedback!
SectionΒ 1. ChapterΒ 5
single
Ask AI
Ask AI
Ask anything or try one of the suggested questions to begin our chat
Awesome!
Completion rate improved to 2.56
Challenge
Swipe to show menu
Try to apply the aquired knowledge to fix the first problematic column.
Task
Swipe to start coding
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
Everything was clear?
Thanks for your feedback!
Awesome!
Completion rate improved to 2.56SectionΒ 1. ChapterΒ 5
single