Skip to content

Commit c2e44cf

Browse files
Prevent re-indexing of boolean series
1 parent c419614 commit c2e44cf

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

streamlit_app.py

+2-2
Original file line numberDiff line numberDiff line change
@@ -133,8 +133,8 @@ def get_gdp_data():
133133
col = cols[i % len(cols)]
134134

135135
with col:
136-
first_gdp = first_year[gdp_df['Country Code'] == country]['GDP'].iat[0] / 1000000000
137-
last_gdp = last_year[gdp_df['Country Code'] == country]['GDP'].iat[0] / 1000000000
136+
first_gdp = first_year[first_year['Country Code'] == country]['GDP'].iat[0] / 1000000000
137+
last_gdp = last_year[last_year['Country Code'] == country]['GDP'].iat[0] / 1000000000
138138

139139
if math.isnan(first_gdp):
140140
growth = 'n/a'

0 commit comments

Comments
 (0)