Skip to content

Commit

Permalink
Aula 03
Browse files Browse the repository at this point in the history
  • Loading branch information
Phvr06 committed Aug 22, 2023
1 parent 8766312 commit 3b032ef
Show file tree
Hide file tree
Showing 4 changed files with 1,956 additions and 13 deletions.
34 changes: 21 additions & 13 deletions Aula01_Exercicio__Manipular_Filtrar_DF.ipynb
Original file line number Diff line number Diff line change
Expand Up @@ -60,7 +60,7 @@
},
{
"cell_type": "code",
"execution_count": 1,
"execution_count": 2,
"metadata": {},
"outputs": [],
"source": [
Expand All @@ -71,15 +71,15 @@
},
{
"cell_type": "code",
"execution_count": 2,
"execution_count": 3,
"metadata": {},
"outputs": [
{
"name": "stdout",
"output_type": "stream",
"text": [
"Esperamos trabalhar no diretório: \n",
"c:\\Users\\PH\\Desktop\\Repositorios\\cdados\n",
"c:\\Users\\ribei\\OneDrive\\Área de Trabalho\\cdados\\cdados\n",
"\n"
]
}
Expand All @@ -90,7 +90,7 @@
},
{
"cell_type": "code",
"execution_count": 3,
"execution_count": 4,
"metadata": {},
"outputs": [
{
Expand Down Expand Up @@ -126,7 +126,7 @@
},
{
"cell_type": "code",
"execution_count": 4,
"execution_count": 5,
"metadata": {},
"outputs": [],
"source": [
Expand All @@ -153,7 +153,7 @@
},
{
"cell_type": "code",
"execution_count": 5,
"execution_count": 6,
"metadata": {
"scrolled": true
},
Expand Down Expand Up @@ -271,7 +271,7 @@
"4 20619075.0 1.083223e+11 Americas South America "
]
},
"execution_count": 5,
"execution_count": 6,
"metadata": {},
"output_type": "execute_result"
}
Expand Down Expand Up @@ -308,7 +308,7 @@
},
{
"cell_type": "code",
"execution_count": 26,
"execution_count": 7,
"metadata": {},
"outputs": [
{
Expand All @@ -326,7 +326,7 @@
"dtype: object"
]
},
"execution_count": 26,
"execution_count": 7,
"metadata": {},
"output_type": "execute_result"
}
Expand All @@ -337,7 +337,7 @@
},
{
"cell_type": "code",
"execution_count": 25,
"execution_count": 8,
"metadata": {},
"outputs": [
{
Expand Down Expand Up @@ -479,7 +479,7 @@
"[185 rows x 5 columns]"
]
},
"execution_count": 25,
"execution_count": 8,
"metadata": {},
"output_type": "execute_result"
}
Expand Down Expand Up @@ -522,9 +522,16 @@
},
{
"cell_type": "code",
"execution_count": 65,
"execution_count": 9,
"metadata": {},
"outputs": [
{
"name": "stdout",
"output_type": "stream",
"text": [
"['China', 'India', 'United States', 'Indonesia', 'Brazil']\n"
]
},
{
"data": {
"text/html": [
Expand Down Expand Up @@ -589,7 +596,7 @@
"175 United States 36.486084"
]
},
"execution_count": 65,
"execution_count": 9,
"metadata": {},
"output_type": "execute_result"
}
Expand All @@ -598,6 +605,7 @@
"# Coloque seu código aqui...\n",
"lista = gap.loc[gap['year'] == 2015, :].sort_values(by='population', ascending=False).head(5).loc[:, 'country']\n",
"lista = list(lista)\n",
"print(lista)\n",
"\n",
"gap5 = gap.loc[gap['country'].isin(lista), ['country', 'year', 'gdp', 'population']]\n",
"gap5['dollar_day'] = (gap5['gdp']/gap5['population'])/365\n",
Expand Down
Loading

0 comments on commit 3b032ef

Please sign in to comment.