Skip to content

Commit

Permalink
a
Browse files Browse the repository at this point in the history
  • Loading branch information
Phvr06 committed Nov 12, 2023
1 parent abbb172 commit f777d5f
Show file tree
Hide file tree
Showing 24 changed files with 65,974 additions and 16 deletions.
81 changes: 81 additions & 0 deletions Aula01_Atividade_Manipular_Filtrar_DF.ipynb
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,64 @@
"cell_type": "markdown",
"metadata": {},
"source": [
"\n",
"\n",
"\n",
"\n",
"\n",
"\n",
"\n",
"\n",
"\n",
"\n",
"\n",
"\n",
"\n",
"\n",
"\n",
"\n",
"\n",
"\n",
"\n",
"\n",
"\n",
"\n",
"\n",
"\n",
"\n",
"\n",
"\n",
"\n",
"\n",
"\n",
"\n",
"\n",
"\n",
"\n",
"\n",
"\n",
"\n",
"\n",
"\n",
"\n",
"\n",
"\n",
"\n",
"\n",
"\n",
"\n",
"\n",
"\n",
"\n",
"\n",
"\n",
"\n",
"\n",
"\n",
"\n",
"\n",
"\n",
"\n",
"___\n",
"# Atividade: <p> <center> Manipulação de um `DataFrame` com uso do **Pandas**\n",
"___\n",
Expand All @@ -17,6 +75,29 @@
"cell_type": "markdown",
"metadata": {},
"source": [
"\n",
"\n",
"\n",
"\n",
"\n",
"\n",
"\n",
"\n",
"\n",
"\n",
"\n",
"\n",
"\n",
"\n",
"\n",
"\n",
"\n",
"\n",
"\n",
"\n",
"\n",
"\n",
"\n",
"<div id=\"indice\"></div>\n",
"\n",
"## Índice\n",
Expand Down
35 changes: 21 additions & 14 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": 2,
"execution_count": 1,
"metadata": {},
"outputs": [],
"source": [
Expand All @@ -71,15 +71,15 @@
},
{
"cell_type": "code",
"execution_count": 3,
"execution_count": 2,
"metadata": {},
"outputs": [
{
"name": "stdout",
"output_type": "stream",
"text": [
"Esperamos trabalhar no diretório: \n",
"c:\\Users\\ribei\\OneDrive\\Área de Trabalho\\cdados\\cdados\n",
"c:\\Users\\PH\\Desktop\\Repositorios\\cdados\n",
"\n"
]
}
Expand All @@ -90,7 +90,7 @@
},
{
"cell_type": "code",
"execution_count": 4,
"execution_count": 3,
"metadata": {},
"outputs": [
{
Expand Down Expand Up @@ -126,7 +126,7 @@
},
{
"cell_type": "code",
"execution_count": 5,
"execution_count": 4,
"metadata": {},
"outputs": [],
"source": [
Expand All @@ -153,7 +153,7 @@
},
{
"cell_type": "code",
"execution_count": 6,
"execution_count": 5,
"metadata": {
"scrolled": true
},
Expand Down Expand Up @@ -271,7 +271,7 @@
"4 20619075.0 1.083223e+11 Americas South America "
]
},
"execution_count": 6,
"execution_count": 5,
"metadata": {},
"output_type": "execute_result"
}
Expand Down Expand Up @@ -308,7 +308,7 @@
},
{
"cell_type": "code",
"execution_count": 7,
"execution_count": 6,
"metadata": {},
"outputs": [
{
Expand All @@ -326,7 +326,7 @@
"dtype: object"
]
},
"execution_count": 7,
"execution_count": 6,
"metadata": {},
"output_type": "execute_result"
}
Expand All @@ -337,7 +337,7 @@
},
{
"cell_type": "code",
"execution_count": 8,
"execution_count": 7,
"metadata": {},
"outputs": [
{
Expand Down Expand Up @@ -479,7 +479,7 @@
"[185 rows x 5 columns]"
]
},
"execution_count": 8,
"execution_count": 7,
"metadata": {},
"output_type": "execute_result"
}
Expand Down Expand Up @@ -522,13 +522,19 @@
},
{
"cell_type": "code",
"execution_count": 9,
"execution_count": 8,
"metadata": {},
"outputs": [
{
"name": "stdout",
"output_type": "stream",
"text": [
"10209 China\n",
"10251 India\n",
"10350 United States\n",
"10252 Indonesia\n",
"10197 Brazil\n",
"Name: country, dtype: object\n",
"['China', 'India', 'United States', 'Indonesia', 'Brazil']\n"
]
},
Expand Down Expand Up @@ -596,14 +602,15 @@
"175 United States 36.486084"
]
},
"execution_count": 9,
"execution_count": 8,
"metadata": {},
"output_type": "execute_result"
}
],
"source": [
"# Coloque seu código aqui...\n",
"lista = gap.loc[gap['year'] == 2015, :].sort_values(by='population', ascending=False).head(5).loc[:, 'country']\n",
"print(lista)\n",
"lista = list(lista)\n",
"print(lista)\n",
"\n",
Expand Down Expand Up @@ -652,7 +659,7 @@
"name": "python",
"nbconvert_exporter": "python",
"pygments_lexer": "ipython3",
"version": "3.10.9"
"version": "3.10.13"
}
},
"nbformat": 4,
Expand Down
2 changes: 1 addition & 1 deletion Aula02_Exercicio_TeoriaDaProbabilidade.ipynb
Original file line number Diff line number Diff line change
Expand Up @@ -926,7 +926,7 @@
"name": "python",
"nbconvert_exporter": "python",
"pygments_lexer": "ipython3",
"version": "3.10.9"
"version": "3.10.13"
}
},
"nbformat": 4,
Expand Down
2 changes: 1 addition & 1 deletion Aula04_Atividade_Titanic_ClassificadorBayes.ipynb
Original file line number Diff line number Diff line change
Expand Up @@ -3286,7 +3286,7 @@
"name": "python",
"nbconvert_exporter": "python",
"pygments_lexer": "ipython3",
"version": "3.10.9"
"version": "3.10.13"
}
},
"nbformat": 4,
Expand Down
Loading

0 comments on commit f777d5f

Please sign in to comment.