Data cleaning is the process of preparing raw data for analysis. This is also know as data pre-processing or data wrangling. Data cleaning is a critical step in the process of data analysis and machine learning. Missing values must be considered for their impact on any future data analysis.
Here is a summary of the principles with the application Pandas for Python commands. I’ll use the the abbreviation df where df = dataframe and the Pandas function.
If you’re cleaning data for data science/machine learning, you should split the dataset into train and test first and then only clean the data in the train dataset.