Spaces:
Sleeping
Sleeping
Update tools/statistical_graph_analyzer.py
Browse files
tools/statistical_graph_analyzer.py
CHANGED
|
@@ -21,7 +21,7 @@ def analyze_dataset(data: List[float]) -> Dict[str, Any]:
|
|
| 21 |
# Medidas de Tendência Central
|
| 22 |
mean_val = np.mean(data)
|
| 23 |
median_val = np.median(data)
|
| 24 |
-
# A moda pode ter múltiplos valores ou nenhum
|
| 25 |
mode_result = stats.mode(data, keepdims=False)
|
| 26 |
mode_val = mode_result.mode.tolist() if mode_result.count > 0 else 'Não há moda única'
|
| 27 |
|
|
|
|
| 21 |
# Medidas de Tendência Central
|
| 22 |
mean_val = np.mean(data)
|
| 23 |
median_val = np.median(data)
|
| 24 |
+
# A moda pode ter múltiplos valores ou nenhum
|
| 25 |
mode_result = stats.mode(data, keepdims=False)
|
| 26 |
mode_val = mode_result.mode.tolist() if mode_result.count > 0 else 'Não há moda única'
|
| 27 |
|