We then preprocess the information by merging the 2 tables, scaling the numerical options, and OneHotEncoding…