-
-
Save sillasgonzaga/fffd7a177f6cac2a4dbbf0ccef4188c9 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# filtrar ano mais recente | |
df_idhm = df_idhm[df_idhm['ANO'] == np.max(df_idhm['ANO'])] | |
# selecionar colunas | |
df_idhm = df_idhm[['Codmun7', 'IDHM']] | |
# renomear colunas | |
df_idhm.columns = ['cod_municipio', 'idhm'] | |
df_idhm.head() |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment