To solve this task, you need to perform the following series of steps:
- Load the given dataset into your IDE using
pandas; - Look at the dataset and find a categorical feature (the feature that can only take on a value from some fixed set) that contains missing values (
NaNs); - Fill the
NaNs with the mode (= the most frequent value) of the found categorical feature.
Print the first 5 rows of the DataFrame and copy the result to the answer section. Use print(df.head()) to avoid any formatting issues.
Tip: two methods are of particular interest in this case, .fillna(value, inplace=True) and .mode().