KNN :K nearest neighbor is a supervised technique used for both regression and classification.By computing between the distance between the test data and all of the training points. KNN tries to predict the proper class of training data. It performs calculations when prompted to poll the data points neighbors.

Matplotlib: It is another library of python which helps to visualise data in 2-D charts and is more of a mathematical library which helps to calculate the statistical factors .
Data Analysis is essentially defined as a graphical analysis of large volumes of data provided accordingly to the need and…