Solution: Clean the Data
This lesson gives a detailed review of the solution to the challenge from the previous lesson.
We'll cover the following...
We'll cover the following...
Solution #
Explanation
A function clean_data is declared with df passed to it as a parameter.
On line 3, the dropna() function of the DataFrame, which automatically finds and removes all NaN containing ...