Course Content
Data Manipulation using pandas
Data Manipulation using pandas
2. Preprocessing Data: Part II
Challenge
Let's replace missing values in the 'morgh', 'valueh'
with their respective means.
Task
- Create a dictionary
values
with keys being column names ('grosrth', 'valueh'
) and values being their respective means. - Fill NA values using created previously dictionary
values
. Set theinplace
parameter so changes will save.
Task
- Create a dictionary
values
with keys being column names ('grosrth', 'valueh'
) and values being their respective means. - Fill NA values using created previously dictionary
values
. Set theinplace
parameter so changes will save.
Everything was clear?
Challenge
Let's replace missing values in the 'morgh', 'valueh'
with their respective means.
Task
- Create a dictionary
values
with keys being column names ('grosrth', 'valueh'
) and values being their respective means. - Fill NA values using created previously dictionary
values
. Set theinplace
parameter so changes will save.
Task
- Create a dictionary
values
with keys being column names ('grosrth', 'valueh'
) and values being their respective means. - Fill NA values using created previously dictionary
values
. Set theinplace
parameter so changes will save.
Everything was clear?
Challenge
Let's replace missing values in the 'morgh', 'valueh'
with their respective means.
Task
- Create a dictionary
values
with keys being column names ('grosrth', 'valueh'
) and values being their respective means. - Fill NA values using created previously dictionary
values
. Set theinplace
parameter so changes will save.
Task
- Create a dictionary
values
with keys being column names ('grosrth', 'valueh'
) and values being their respective means. - Fill NA values using created previously dictionary
values
. Set theinplace
parameter so changes will save.
Everything was clear?
Let's replace missing values in the 'morgh', 'valueh'
with their respective means.
Task
- Create a dictionary
values
with keys being column names ('grosrth', 'valueh'
) and values being their respective means. - Fill NA values using created previously dictionary
values
. Set theinplace
parameter so changes will save.