títulos en las subgráficas de cobertura

parent 31c14e1f
...@@ -312,7 +312,7 @@ def update_por_protocolo(visita): ...@@ -312,7 +312,7 @@ def update_por_protocolo(visita):
"biochemical" :["hba1c", "glucose", "ct", "tag", "ldl", "hdl", "pcr","alt", "ast","homa", "insuline" ], "biochemical" :["hba1c", "glucose", "ct", "tag", "ldl", "hdl", "pcr","alt", "ast","homa", "insuline" ],
"antropometric" : ["imc", "weight", "waist_circumference"] "antropometric" : ["imc", "weight", "waist_circumference"]
} }
figura = make_subplots(rows=2, cols=3, vertical_spacing=0.25) figura = make_subplots(rows=2, cols=3, vertical_spacing=0.25, subplot_titles=list(protocolos.keys()))
for protocolo in protocolos.keys(): for protocolo in protocolos.keys():
columnas = list(set(df1.columns).intersection(set(protocolos[protocolo]))) columnas = list(set(df1.columns).intersection(set(protocolos[protocolo])))
cuentas = 100 * df1[columnas].replace("",np.nan).count() / len(df1) cuentas = 100 * df1[columnas].replace("",np.nan).count() / len(df1)
......
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