First we have to understand what is the meaning of clean data.
Clean data means no duplicate values. No rows which have very fewer values and very less variance. Delete rows and columns which contain duplicate data.
We have to drop columns or rows which are unnecessary. Renaming columns to more recognizable names.
This is what clean data means.
We have many functions in our libraries numpy and pandas which can be used to clean our data.
We have the drop() function which is used to drop unnecessary columns and rows .
In this way we can clean data in python.