Skip to content

Instantly share code, notes, and snippets.

@amankharwal
Created Feb 16, 2021
Embed
What would you like to do?
import pandas as pd
import numpy as np
import matplotlib.pyplot as plt
import seaborn as sns
sns.set()
from sklearn.cluster import KMeans
data = pd.read_csv("https://raw.githubusercontent.com/ageron/handson-ml/master/datasets/housing/housing.csv")
print(data.columns)
data = data.loc[:, ["median_income", "latitude", "longitude"]]
print(data.head())
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment