Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Exercicio_casa_Ellen_M_Santiago #11

Open
wants to merge 6 commits into
base: main
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4,377 changes: 4,377 additions & 0 deletions exercicios/para-casa/SAO PAULO-2024.CSV

Large diffs are not rendered by default.

Empty file.
742 changes: 742 additions & 0 deletions exercicios/para-casa/exercicio_casa.ipynb

Large diffs are not rendered by default.

8,769 changes: 8,769 additions & 0 deletions exercicios/para-sala/BRASILIA_2023.CSV

Large diffs are not rendered by default.

1,120 changes: 571 additions & 549 deletions exercicios/para-sala/exercicio-seg.ipynb

Large diffs are not rendered by default.

867 changes: 177 additions & 690 deletions exercicios/para-sala/exercicio.ipynb

Large diffs are not rendered by default.

107 changes: 107 additions & 0 deletions exercicios/para-sala/exercicio_2.ipynb
Original file line number Diff line number Diff line change
@@ -0,0 +1,107 @@
{
"cells": [
{
"cell_type": "code",
"execution_count": 2,
"metadata": {},
"outputs": [],
"source": [
"import pandas as pd\n",
"df = pd.read_csv('BRASILIA_2023.csv', delimiter=';', skiprows=8,encoding='latin1')\n"
]
},
{
"cell_type": "code",
"execution_count": null,
"metadata": {},
"outputs": [],
"source": [
"df.head()"
]
},
{
"cell_type": "code",
"execution_count": 35,
"metadata": {},
"outputs": [],
"source": [
"df_reduzido = df[['Data', 'PRESSAO ATMOSFERICA AO NIVEL DA ESTACAO, HORARIA (mB)', 'VENTO, VELOCIDADE HORARIA (m/s)', 'TEMPERATURA DO PONTO DE ORVALHO (°C)','UMIDADE REL. MAX. NA HORA ANT. (AUT) (%)']]"
]
},
{
"cell_type": "code",
"execution_count": 36,
"metadata": {},
"outputs": [],
"source": [
"df_amostra = df_reduzido.head(20)"
]
},
{
"cell_type": "code",
"execution_count": null,
"metadata": {},
"outputs": [],
"source": [
"remover = df_amostra.dropna(axis=0,how='all')\n",
"df_final = remover"
]
},
{
"cell_type": "code",
"execution_count": 27,
"metadata": {},
"outputs": [
{
"data": {
"text/plain": [
"Data 0\n",
"PRESSAO ATMOSFERICA AO NIVEL DA ESTACAO, HORARIA (mB) 0\n",
"VENTO, VELOCIDADE HORARIA (m/s) 0\n",
"TEMPERATURA DO PONTO DE ORVALHO (°C) 0\n",
"UMIDADE REL. MAX. NA HORA ANT. (AUT) (%) 0\n",
"dtype: int64"
]
},
"execution_count": 27,
"metadata": {},
"output_type": "execute_result"
}
],
"source": [
"remover.isnull().sum()"
]
},
{
"cell_type": "code",
"execution_count": null,
"metadata": {},
"outputs": [],
"source": [
"df_final['PRESSAO ATMOSFERICA AO NIVEL DA ESTACAO, HORARIA (mB)'] = df_final['PRESSAO ATMOSFERICA AO NIVEL DA ESTACAO, HORARIA (mB)'] .replace(';', '.')\n",
"df_amostra"
]
}
],
"metadata": {
"kernelspec": {
"display_name": "Python 3",
"language": "python",
"name": "python3"
},
"language_info": {
"codemirror_mode": {
"name": "ipython",
"version": 3
},
"file_extension": ".py",
"mimetype": "text/x-python",
"name": "python",
"nbconvert_exporter": "python",
"pygments_lexer": "ipython3",
"version": "3.12.0"
}
},
"nbformat": 4,
"nbformat_minor": 2
}
Loading