Update app.py
Browse files
app.py
CHANGED
@@ -32,7 +32,7 @@ def generate_predictions(medication_data, site, bmd, mu, sigma):
|
|
32 |
|
33 |
for _, row in site_data.iterrows():
|
34 |
drug = row['Medication']
|
35 |
-
predictions = {'Year': [], 'Predicted BMD': [], 'Predicted T-score': []}
|
36 |
|
37 |
baseline_bmd = bmd
|
38 |
for year in row.index[1:-1]: # Skip 'Medication' and 'Site' columns
|
|
|
32 |
|
33 |
for _, row in site_data.iterrows():
|
34 |
drug = row['Medication']
|
35 |
+
predictions = {'Year': ['0'], 'Predicted BMD': [round(bmd, 3)], 'Predicted T-score': [round(calculate_tscore(bmd, mu, sigma), 1)]}
|
36 |
|
37 |
baseline_bmd = bmd
|
38 |
for year in row.index[1:-1]: # Skip 'Medication' and 'Site' columns
|