Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
I
inventario
Overview
Overview
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Jose Luis Gordillo Ruiz
inventario
Commits
592f4d73
Commit
592f4d73
authored
Jan 30, 2025
by
Jose Luis Gordillo Ruiz
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
adición de una boxgraph para los índices con respecto a grupo de IMC
parent
3742c91c
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
10 additions
and
2 deletions
+10
-2
estadisticas.py
+10
-2
No files found.
estadisticas.py
View file @
592f4d73
...
@@ -100,7 +100,14 @@ def imc_cat(datos):
...
@@ -100,7 +100,14 @@ def imc_cat(datos):
)
)
return
fig
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=[
...
@@ -468,7 +475,8 @@ app.layout = html.Div(children=[
html
.
Div
(
children
=
[
html
.
Div
(
children
=
[
html
.
Div
(
children
=
[
html
.
H1
(
"Relaciones entre IMC y QS"
,
className
=
"header-title2"
),],
),
html
.
Div
(
children
=
[
html
.
H1
(
"Relaciones entre IMC y QS"
,
className
=
"header-title2"
),],
),
dcc
.
Graph
(
figure
=
popcorr
(
visitas_incluidos
)),
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
# ppgr a controlados
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment