ajuste en el tipo de dato para heatmap

True/False es interpretado como 0/255, así que explícitamente lo
convertía entero  (0/1). Nota: en go.Heatmap no se hace interpretación
de datos, así que True/False no funciona.
parent de484db3
...@@ -344,7 +344,7 @@ def update_por_prueba(visita): ...@@ -344,7 +344,7 @@ def update_por_prueba(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"]
} }
heatmap = df1.notna() heatmap = df1.notna().astype(int)
colorscale = [[0, 'gold'], [1,'mediumturquoise']] colorscale = [[0, 'gold'], [1,'mediumturquoise']]
columnas = [ test for protocolo in protocolos.keys() for test in protocolos[protocolo]] columnas = [ test for protocolo in protocolos.keys() for test in protocolos[protocolo]]
lista = list(set(df1.columns).intersection(set(columnas))) lista = list(set(df1.columns).intersection(set(columnas)))
......
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