Spaces:
Runtime error
Runtime error
Update app.py
Browse filesFixed indentation error
app.py
CHANGED
@@ -40,8 +40,8 @@ merged_df = pd.merge(top_event_df, population_growth_df, on='year')
|
|
40 |
|
41 |
# Define a function to calculate the population increase for a given year and country
|
42 |
def calculate_population_increase(row):
|
43 |
-
population_increase = row['global_population'] * (row['growth_rate'] / 100)
|
44 |
-
return int(population_increase)
|
45 |
|
46 |
# Apply the population increase calculation to the merged data
|
47 |
|
|
|
40 |
|
41 |
# Define a function to calculate the population increase for a given year and country
|
42 |
def calculate_population_increase(row):
|
43 |
+
population_increase = row['global_population'] * (row['growth_rate'] / 100)
|
44 |
+
return int(population_increase)
|
45 |
|
46 |
# Apply the population increase calculation to the merged data
|
47 |
|