Spaces:
Sleeping
Sleeping
Update app.py
Browse files
app.py
CHANGED
@@ -67,17 +67,8 @@ def analyze_data(data, visualization_type, class_size=10):
|
|
67 |
st.write(data.dtypes)
|
68 |
|
69 |
# Combine numerical and non-numerical summaries
|
70 |
-
|
71 |
-
|
72 |
-
[
|
73 |
-
data.describe(include=[np.number]),
|
74 |
-
data.describe(include=['object', 'category'])
|
75 |
-
],
|
76 |
-
axis=1
|
77 |
-
)
|
78 |
-
st.write(combined_stats)
|
79 |
-
|
80 |
-
numeric_data = data.select_dtypes(include=[np.number])
|
81 |
|
82 |
# Visualization logic
|
83 |
if visualization_type == "Heatmap" and not numeric_data.empty:
|
|
|
67 |
st.write(data.dtypes)
|
68 |
|
69 |
# Combine numerical and non-numerical summaries
|
70 |
+
|
71 |
+
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
72 |
|
73 |
# Visualization logic
|
74 |
if visualization_type == "Heatmap" and not numeric_data.empty:
|