Skip to content

Latest commit

 

History

History
38 lines (27 loc) · 1.16 KB

02-data-preparation.md

File metadata and controls

38 lines (27 loc) · 1.16 KB

2.2 Data preparation

Slides

Notes

Pandas attributes and methods:

  • pd.read.csv() - read csv files
  • df.head() - take a look of the dataframe
  • df.columns - retrieve colum names of a dataframe
  • df.columns.str.lower() - lowercase all the letters
  • df.columns.str.replace(' ', '_') - replace the space separator
  • df.dtypes - retrieve data types of all features
  • df.index - retrive indices of a dataframe

The entire code of this project is available in this jupyter notebook.

⚠️ The notes are written by the community.
If you see an error here, please create a PR with a fix.

Nagivation