cambio en el cálculo del tamaño de la población

ya no es con base en el archivo leído sino en lo obtenido desde el
endpoint 'pacientes'
parent bf7fea60
...@@ -93,9 +93,7 @@ data_o = ( ...@@ -93,9 +93,7 @@ data_o = (
data_o["paciente"] = data_o["paciente"].astype("str") + "_p" data_o["paciente"] = data_o["paciente"].astype("str") + "_p"
data_o["Secuenciaciones"] = 0 data_o["Secuenciaciones"] = 0
Total_pacientes = len(data_o.index)
data = data_o.loc[data_o["incluido"]] data = data_o.loc[data_o["incluido"]]
Total_incluidos = len(data)
...@@ -120,8 +118,8 @@ app.layout = html.Div(children=[ ...@@ -120,8 +118,8 @@ app.layout = html.Div(children=[
html.Div(children=[ html.Div(children=[
html.P(children="🥑", className="header-emoji"), html.P(children="🥑", className="header-emoji"),
html.H1(children="Inventario de datos", className="header-title"), html.H1(children="Inventario de datos", className="header-title"),
html.P(children=(str(Total_pacientes) + " participantes."),className="header-description"), html.P(children=(str(len(reclutados.index)) + " participantes fueron reclutados."),className="header-description"),
html.P(children=(str(Total_incluidos) + " están incluidos en el análisis."),className="header-description"), html.P(children=(str(len(participantes.index)) + " están incluidos en el estudio."),className="header-description"),
], ],
className="header",), className="header",),
html.Div(children=[html.H1("Desempeño de la población reclutada", className="header-title2")]), html.Div(children=[html.H1("Desempeño de la población reclutada", className="header-title2")]),
......
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