First, you should analyze and visualize data to check if there are any problems with it, such as missing values, incorrect formatting, different units in measurement, unwanted data, outliers, etc. Then, you have to solve them, if any, one by one.
If you are looking for an online course to learn Machine Learning, I recommend this Machine Learning Course by Intellipaat.