preprocess_data function

Preprocess data prior to running machine learning