Spaces:
Running
Running
Commit
•
7b14097
1
Parent(s):
4c3dcca
Update app.py
Browse files
app.py
CHANGED
@@ -66,8 +66,7 @@ for conta in instituicao_df['Conta'].unique():
|
|
66 |
conta_df = instituicao_df[instituicao_df['Conta'] == conta]
|
67 |
|
68 |
# Check if 'Linear Regression' is available for this 'Conta'
|
69 |
-
if 'Linear Regression
|
70 |
-
# If yes, filter to only 'Linear Regression' results for this 'Conta'
|
71 |
lr_rows = conta_df[conta_df['Modelo'] == 'Linear Regression']
|
72 |
adjusted_rows.append(lr_rows)
|
73 |
else:
|
|
|
66 |
conta_df = instituicao_df[instituicao_df['Conta'] == conta]
|
67 |
|
68 |
# Check if 'Linear Regression' is available for this 'Conta'
|
69 |
+
if len(conta_df['Modelo'].unique()) > 1 and "Linear Regression" in conta_df['Modelo'].unique():
|
|
|
70 |
lr_rows = conta_df[conta_df['Modelo'] == 'Linear Regression']
|
71 |
adjusted_rows.append(lr_rows)
|
72 |
else:
|