adición de una boxgraph para los índices con respecto a grupo de IMC

parent 3742c91c
......@@ -100,7 +100,14 @@ def imc_cat(datos):
)
return fig
def imc_cat_bigote(datos):
medidas = [ "glucose", "hba1c", "ct", "hdl", "insuline"]
grupos = ["LW","NW","OW","O-CI","O-CII","O-CIII"]
datos["imc_cat"] = pd.cut(datos["imc"], bins=[0,18,25,30,35,40,100], labels=grupos)
figura = px.box(datos, x="imc_cat", y="glucose")
return figura
......@@ -468,7 +475,8 @@ app.layout = html.Div(children=[
html.Div(children=[
html.Div(children= [ html.H1("Relaciones entre IMC y QS", className= "header-title2"),], ),
dcc.Graph(figure=popcorr(visitas_incluidos)),
dcc.Graph(figure=imc_cat(visitas_incluidos))
dcc.Graph(figure=imc_cat(visitas_incluidos)),
dcc.Graph(figure=imc_cat_bigote(visitas_incluidos))
]),
# ppgr a controlados
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment