Car accident data analysis

Question

You're given the following dataset showing all crashes reported in 2019 in Michigan. What is the most common weather condition for crashes in Michigan? What is the most common weather condition that result in a crash injury?

To help get you started, below is code (Python) to import the referenced dataset:

# Import libraries
%matplotlib inline
import pandas as pd
import numpy as np
import matplotlib.pyplot as plt
# Import data
df = pd.read_csv('https://raw.githubusercontent.com/erood/interviewqs.com_code_snippets/master/Datasets/mi_2019_crash_data.csv')

Solution

Access restricted

Subscribe to premium account to see the solution.

Get premium now