Skip to content

Data Cleaning

More Data Cleaning

Wind Direction

As outlined in the episodes before, the wind direction-column still has some peculiarities that need to be sorted out.

In this column, replace the value 0 (calm winds) with nan to indicate an invalid wind direction. Further replace the value 360 (North) with 0 to be consistent with the convention used in the marine and aeronautic communities.

Exploration

Where does all the Wind come from?

Plot a histogram of the wind direction. Let us first collect the amount of each unique value. Check out pandas .value_counts() and pyplot.bar(…) for help.

How fast is it going?

Plot a histogram of the wind speed. Check out pyplot.hist(…) to help you out.