Search⌘ K
AI Features

Solution: Emergency Calls Dataset

Explore how to analyze an emergency calls dataset by calculating unique townships and call titles, identifying top townships with most 911 calls, and creating visualizations using count plots with Python libraries like pandas and seaborn.

Task 1: Calculating unique townships and titles

Calculate and print the number of unique townships and titles in the data.

Solution

C#
# Your code here..
print(df['twp'].nunique(), df['title'].nunique())

Explanation

In the code above, we use the nunique() ...