text_html_output_1.png
import matplotlib.pyplot as plt

import pandas as pd

import seaborn as sns

data = pd.DataFrame(pd.read_csv('../input/motorbike_ambulance_calls.csv'))

sum(data.duplicated(subset='index')) == 0

work_data = pd.concat([data['cnt'], data['workingday']], axis=1)
f, ax = plt.subplots(figsize=(8, 6))
fig = sns.boxplot(x="workingday", y="cnt", data=work_data)
fig.axis(ymin=0, ymax=1000);
# hypothesis was valid 
# the overall mean for accidents on a workingday is higher than 

week_data = pd.concat([data['cnt'], data['weekday']], axis=1)
fig = sns.boxplot(x="weekday", y="cnt", data=week_data)
fig.axis(ymin=0, ymax=1000);
# hypothesis was valid 
# the overall mean for accidents on a workingday is higher than on non working days

sns.catplot(x='weathersit', y='cnt', hue='yr', data=data, height=6, kind='bar', palette='muted')