<jupyter_start><jupyter_text>Table of results<jupyter_code># displaying first rows of results:
df_10.head()<jupyter_output><empty_output><jupyter_text>Generating interactive Plots<jupyter_code>fig = make_subplots(specs=[[{"secondary_y": True}]])

fig.add_trace(go.Box(x=df_10["participation"], y=df_10['Death count'],
                         name = 'Total deaths',
                       legendgroup='Total deaths'))
fig.add_trace(go.Box(x=df_10["participation"], y=df_10['Total infected'],
             name = 'Total infected',
                       legendgroup='Total infected'))

fig.add_trace(go.Box(x=df_10["participation"], y=df_10['Total tests'],
              name = 'Total tests', 
                       legendgroup='Total tests'),
             secondary_y = True)
fig.update_layout(title_text = "Values of KPIs at the end of the 85 simulated days")
fig.update_layout(boxmode='group')
fig.update_yaxes(title_text= "Total Numbers (Infections & deaths)", secondary_y=False)
fig.update_yaxes(title_text= "Total Numbers (Tests)", secondary_y=True)
fig.update_xaxes(title_text="Participation rate of Contact Tracing in <b>%</b> ")
fig.update_layout(
    autosize=False,
    width=800,
    height=800
)
fig.show()
# fig.show("png")
# fig.write_html("plots/Total_KPIs_Box.html")

fig = go.Figure()
fig.add_trace(go.Box(x=df_10["participation"], y=df_10['Peak Infected'],
             name = 'Infected',
                       legendgroup='Infected'))
fig.add_trace(go.Box(x=df_10["participation"], y=df_10['Peak Quarantined'],
                         name = 'Quarantined',
                        legendgroup='Quarantined'))

fig.update_layout(title_text = "Maximum Values of KPIs in the 85 simulated days")
fig.update_layout(boxmode='group')
fig.update_yaxes(title_text= "Total Numbers")
fig.update_xaxes(title_text="Participation rate of Contact Tracing in <b>%</b> ")
fig.update_layout(
    autosize=True,
    width=800,
    height=800
)
fig.show()
# fig.show("png")
# fig.write_html("plots/Peak_KPIs1_Box.html")
fig = go.Figure()
fig.add_trace(go.Box(x=df_10["participation"], y=df_10['Peak Infected Quarantined'],
              name = 'Infected Quarantined',
                       legendgroup='Infected Quarantined'))
fig.add_trace(go.Box(x=df_10["participation"], y=df_10['Peak Healthy Quarantined'],
             name = 'Healthy Quarantined',
                       legendgroup='Healthy Quarantined'))
fig.add_trace(go.Box(x=df_10["participation"], y=df_10['Peak Infected Not Quarantined'],
                         name = 'Infected Not Quarantined',
                       legendgroup='Infected'))
fig.update_layout(title_text = "Maximum Values of KPIs in the 85 simulated days")
fig.update_layout(boxmode='group')
fig.update_yaxes(title_text= "Total Numbers")
fig.update_xaxes(title_text="Participation rate of Contact Tracing in <b>%</b> ")
fig.update_layout(
    autosize=False,
    width=800,
    height=800
)
fig.show()
# fig.show("png")
# fig.write_html("plots/Peak_KPIs2_Box.html")<jupyter_output><empty_output>
{'fraction_non_alphanumeric': 0.1404549950544016, 'fraction_numerical': 0.019782393669634024, 'mean_word_length': 3.748043818466354, 'pattern_counts': {'":': 1, '<': 15, '<?xml version=': 0, '>': 15, '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': '2', 'dir': 'jupyter-structured-clean-dedup', 'id': '486284', 'license': 'Apache-2.0', 'n_tokens_mistral': 1092, 'n_tokens_neox': 985, 'n_words': 177, 'path': 'results/results.ipynb', 'repo_name': 'PimvanderLoos/c18-virus-model', 'size': '3033'}