Algorithm · Capital One · Medium
You are handed two input files, train.csv and test.csv, and must write out two cleaned files, processed_train.csv and processed_test.csv. Each dataset contains two numeric fields, age and net_worth_of_tips, along with three categorical fields: car_model, second_language, and driver_class. Transform the data according to these rules: Fill in any missing age entries, in both the training and the test data, with the mean age computed on the training set and then floored.…