Implement a function to parse and clean a raw dataset, handling missing values and mismatched data types.