"""
## Human Stampedes (1800 - 2021) : Getting Started EDA 

This dataset contains all the historical human stampede events which lead to mass deaths. let's look at some statistics of the dataset. 

View Dataset Here - https://www.kaggle.com/shivamb/human-stampede
"""
import pandas as pd 
import plotly.express as px

df = pd.read_csv("../input/human-stampede/human_stampedes.csv")
print ("Dataset Shape:", df.shape)
df.head()
df.info()
vc = df['Country'].value_counts().to_frame().reset_index().head(15)
fig = px.bar(x=vc["Country"][::-1], y=vc["index"][::-1], orientation='h', color=vc['index'])
fig.update_layout(title = "Countries with Most Stampedes", xaxis_title="Number of Events", yaxis_title = "", plot_bgcolor="#fff", showlegend = False)
fig.show()
fig = px.histogram(df, x="Number of Deaths")
fig.update_layout(title = "Number of Deaths Distribution", xaxis_title="Number of Deaths", yaxis_title = "", plot_bgcolor="#fff", showlegend = False)
fig.show()
"""
Description Column can be analyzed to get insights about event details, View Dataset Here - https://www.kaggle.com/shivamb/human-stampede
"""