image_output_1.png
import pandas as pd

hp = pd.read_csv('../input/london-house-prices/hpdemo.csv')
hp

scaler = SS()
scaler.fit(hp[['east', 'north', 'fl_area']])
hp_sc = scaler.transform(hp[['east', 'north', 'fl_area']])

mod1 = NN(n_neighbors=6, weights='uniform', p=2)
price = hp['price'] / 1000.0
mod1.fit(hp_sc, price)