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
42da9491
Commit
42da9491
authored
Jan 23, 2025
by
Jose Luis Gordillo Ruiz
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
suavizado de algunas distribuciones por kds
parent
37ce89d2
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
3 additions
and
12 deletions
+3
-12
estadisticas.py
+3
-12
No files found.
estadisticas.py
View file @
42da9491
...
...
@@ -22,7 +22,7 @@ def datavis(datos):
lrow
=
1
for
medida
in
medidas
:
fig
.
add_trace
(
go
.
Scatter
(
y
=
datos
[
medida
],
name
=
medida
,
mode
=
"markers"
),
go
.
Scatter
(
x
=
datos
[
"id"
],
y
=
datos
[
medida
],
name
=
medida
,
mode
=
"markers"
),
row
=
lrow
,
col
=
lcol
)
lrow
=
lrow
+
(
lcol
//
3
)
...
...
@@ -249,17 +249,8 @@ def comidas_porcentajes(datos):
datos
[
"total"
]
=
datos
[
columnas
]
.
sum
(
axis
=
1
)
datos
=
datos
[
datos
[
"total"
]
>
0
]
datos
[
columnas
]
=
datos
[
columnas
]
.
div
(
datos
[
"total"
],
axis
=
0
)
figura
=
go
.
Figure
()
for
columna
in
columnas
:
datosfil
=
datos
[
np
.
abs
(
stats
.
zscore
(
datos
[
columna
],
nan_policy
=
'omit'
))
<
3
]
figura
.
add_trace
(
go
.
Histogram
(
x
=
datosfil
[
columna
],
name
=
columna
),
)
figura
.
update_layout
(
bargap
=
0.05
,
# gap between bars of adjacent location coordinates
bargroupgap
=
0.05
# gap between bars of the same location coordinates
)
figura
=
ff
.
create_distplot
([
datos
[
columna
]
for
columna
in
columnas
],
columnas
,
show_hist
=
False
,
show_rug
=
False
)
return
figura
def
comidas_principales
(
datos
):
...
...
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