text_plain_output_1.png
from sklearn.neighbors import KNeighborsRegressor

import pandas as pd

import pandas as pd
with open('../input/train.json') as train_json:
    raw_train = pd.read_json(train_json.read()).reset_index()
from sklearn.neighbors import KNeighborsRegressor
model = KNeighborsRegressor(n_neighbors=300)
price_df = pd.concat([raw_train['bedrooms'], raw_train['bathrooms'], raw_train['latitude'], raw_train['longitude'], raw_train['price']], axis=1)
model.fit(price_df.drop(['price'], axis=1), price_df['price'])