Skip to content

Instantly share code, notes, and snippets.

@gustavoschmoeller
Created January 8, 2021 14:25
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save gustavoschmoeller/e9a05a8101809403c263c903fe35f633 to your computer and use it in GitHub Desktop.
Save gustavoschmoeller/e9a05a8101809403c263c903fe35f633 to your computer and use it in GitHub Desktop.
# Usando o método info para confirmar a conversão do tipo das colunas
df.info()
<class 'pandas.core.frame.DataFrame'>
Int64Index: 365 entries, 0 to 364
Data columns (total 7 columns):
# Column Non-Null Count Dtype
--- ------ -------------- -----
0 Data 365 non-null datetime64[ns]
1 Temperatura Media (C) 365 non-null float64
2 Temperatura Minima (C) 365 non-null float64
3 Temperatura Maxima (C) 365 non-null float64
4 Precipitacao (mm) 365 non-null float64
5 Final de Semana 365 non-null int64
6 Consumo de cerveja (litros) 365 non-null float64
dtypes: datetime64[ns](1), float64(5), int64(1)
memory usage: 22.8 KB
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment