Spaces:
Sleeping
Sleeping
DiegoIrurita
commited on
Commit
•
72bbc37
1
Parent(s):
5cba4a4
Update app.py
Browse files
app.py
CHANGED
@@ -1,5 +1,7 @@
|
|
1 |
import numpy as np
|
2 |
import matplotlib.pyplot as plt
|
|
|
|
|
3 |
|
4 |
# Función para analizar las variables
|
5 |
def analizar_variables(x1, x2):
|
@@ -24,8 +26,8 @@ def analizar_variables(x1, x2):
|
|
24 |
plt.title('Scatter Plot de X1 y X2')
|
25 |
plt.grid(True)
|
26 |
|
27 |
-
#
|
28 |
-
plt.
|
29 |
|
30 |
return correlacion, promedio_x1, promedio_x2, desviacion_std_x1, desviacion_std_x2
|
31 |
|
|
|
1 |
import numpy as np
|
2 |
import matplotlib.pyplot as plt
|
3 |
+
import streamlit as st
|
4 |
+
|
5 |
|
6 |
# Función para analizar las variables
|
7 |
def analizar_variables(x1, x2):
|
|
|
26 |
plt.title('Scatter Plot de X1 y X2')
|
27 |
plt.grid(True)
|
28 |
|
29 |
+
# Mostrar el gráfico
|
30 |
+
plt.show()
|
31 |
|
32 |
return correlacion, promedio_x1, promedio_x2, desviacion_std_x1, desviacion_std_x2
|
33 |
|