Search⌘ K
AI Features

Solution: Emergency Calls Dataset

Explore data analysis techniques on an emergency calls dataset by learning to calculate unique townships and call titles, identify top township call volumes, and create visual count plots. This lesson helps you apply Python functions and seaborn visualizations for practical data insights.

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 ...