Importing the required libraries

Most of the libraries used for this project should be familiar by now. The required libraries can be imported using the following code snippet:

#import the packages

import pandas as pd
import numpy as np
import os
from pandas import DataFrame
from sklearn.cluster import KMeans
from sklearn import preprocessing
import matplotlib.pyplot as plt
from matplotlib import style
import matplotlib.pyplot as plt
from matplotlib.colors import ListedColormap
from sklearn import neighbors, datasets
style.use('ggplot')

Once the import statements are entered into the cell, their code can be executed right away. To run the code, simply hit the Run button from the Jupyter toolbar. Once you execute the code, the libraries are imported into the system and are ready to be used. If you have more than one cell, make sure to run the right cell. To choose the right cell, simply click on the active cell and run the code. 

..................Content has been hidden....................

You can't read the all page of ebook, please click here login for view all page.
Reset
18.191.26.53