text_plain_output_1.png
import pandas as pd # data processing, CSV file I/O (e.g. pd.read_csv)

df = pd.read_csv('../input/BRAZIL_CITIES.csv', sep=';', decimal=',')

df.fillna(0.0, inplace=True)

print(f"total population (2018): {df['ESTIMATED_POP'].sum():10.0f}")
avg_growth = (df['ESTIMATED_POP'].sum() - df['IBGE_RES_POP'].sum()) / df['IBGE_RES_POP'].sum() * 100
print(f'% population growth between 2010 and 2018: {avg_growth:2.2f}')