How would you handle null values and duplicate records in a large dataset using your coding language of choice?