Imagine you are given a dataset with inconsistencies. What steps would you take to analyze and rectify the data?