Glossary

Bug 3

`"Inactive"` is not in `status_map`, so it becomes `NaN`. The final `isna().sum()` will print `1`, not `0`. Fix by adding `"Inactive"` to the map: ```python status_map = { "active": "Active", "ACTIVE": "Active", "Inactive": "Inactive", "inactive": "Inactive", } ```

Learn More

Related Terms