Learn practical skills, build real-world projects, and advance your career

K Nearest Neighbors Project - Solution

Welcome to the KNN Project! This will be a simple project very similar to the lecture, except you'll be given another data set. Go ahead and just follow the directions below.

Import Libraries

Import pandas,seaborn, and the usual libraries.

import pandas as pd
import numpy as np
import matplotlib.pyplot as plt
import seaborn as sns
%matplotlib inline

Get the Data

** Read the 'KNN_Project_Data csv file into a dataframe **

df = pd.read_csv('KNN_Project_Data')