<jupyter_start><jupyter_text>Fatal<jupyter_code>fatal_data = df_injury[df_injury['collision_severity'] == 'fatal']
# TRUCK -- FATAL
# fig = px.line(fatal_data, x='collision_month', y='truck_involved', color='collision_year')
# fig.show()

# MOTORCYCLE -- FATAL
# fig = px.line(fatal_data, x='collision_month', y='motorcycle_involved', color='collision_year')
# fig.show()

# BYCYCLE -- FATAL
# fig = px.line(fatal_data, x='collision_month', y='bicycle_involved', color='collision_year')
# fig.show()

# PEDESTRIAN -- FATAL
fig = px.line(fatal_data, x='collision_month', y='pedestrian_involved', color='collision_year')
# fig.show()
img_bytes = fig.to_image(format="png", engine="orca")
Image(img_bytes)<jupyter_output><empty_output><jupyter_text>Pain<jupyter_code>pain_data = df_injury[df_injury['collision_severity'] == 'pain']
# TRUCK -- PAIN
# fig = px.line(pain_data, x='collision_month', y='truck_involved', color='collision_year')
# fig.show()

# MOTORCYCLE -- PAIN
# fig = px.line(pain_data, x='collision_month', y='motorcycle_involved', color='collision_year')
# fig.show()

# BYCYCLE -- PAIN
# fig = px.line(pain_data, x='collision_month', y='bicycle_involved', color='collision_year')
# fig.show()

# PEDESTRIAN -- PAIN
fig = px.line(pain_data, x='collision_month', y='pedestrian_involved', color='collision_year')
# fig.show()
img_bytes = fig.to_image(format="png", engine="orca")
Image(img_bytes)<jupyter_output><empty_output><jupyter_text>Severe Injury<jupyter_code>severe_injury_data = df_injury[df_injury['collision_severity'] == 'severe injury']
# TRUCK -- SEVER INJURY
# fig = px.line(severe_injury_data, x='collision_month', y='truck_involved', color='collision_year')
# fig.show()

# MOTORCYCLE -- SEVER INJURY
# fig = px.line(severe_injury_data, x='collision_month', y='motorcycle_involved', color='collision_year')
# fig.show()

# BYCYCLE -- SEVER INJURY
# fig = px.line(severe_injury_data, x='collision_month', y='bicycle_involved', color='collision_year')
# fig.show()

# PEDESTRIAN -- SEVER INJURY
fig = px.line(severe_injury_data, x='collision_month', y='pedestrian_involved', color='collision_year')
# fig.show()
img_bytes = fig.to_image(format="png", engine="orca")
Image(img_bytes)<jupyter_output><empty_output>
{'fraction_non_alphanumeric': 0.17105850826261723, 'fraction_numerical': 0.0, 'mean_word_length': 8.068825910931174, 'pattern_counts': {'":': 0, '<': 13, '<?xml version=': 0, '>': 13, 'https://': 0, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 0, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'chain_length': '3', 'dir': 'jupyter-structured-clean-dedup', 'id': '532860', 'license': 'MIT', 'n_tokens_mistral': 936, 'n_tokens_neox': 871, 'n_words': 121, 'path': 'Cillision Rates and Severity for different stake holders.ipynb', 'repo_name': 'taher-mulla/California-Traffic-Collisions-Data-Analysis', 'size': '2239'}