text_html_output_1.png
import pandas as pd

df = pd.read_csv('../input/california-housing-prices/housing.csv')
df1 = pd.DataFrame()
for location in df['ocean_proximity'].unique():
    df1 = df1.append(df.loc[df['ocean_proximity'] == location][:4])
df1 = df1.reset_index()
df = df1.drop(columns='index')
df