Question: Python coding: import pandas as pd url = 'https://raw.githubusercontent.com/subhadipml/California-Housing-Price-Prediction/master/housing.csv' df = pd.read_csv(url) df x1 = df[df['ocean_proximity'] == NEAR BAY] x2 = df[df['ocean_proximity'] == <1H

Python coding:

import pandas as pd

url = 'https://raw.githubusercontent.com/subhadipml/California-Housing-Price-Prediction/master/housing.csv'

df = pd.read_csv(url)

df

x1 = df[df['ocean_proximity'] == "NEAR BAY"]

x2 = df[df['ocean_proximity'] == "<1H OCEAN"]

Questions: 1. Make a histogram of x1 with nice titles, axes labels and colored blue, and make x2 colored red.

2. Make a scatterplot using df of population vs. median_house_value.

3 . Make a two-panel scatterplot using population vs. median_house_value where the left panel is x1 (blue dots) and the right panel is x2 (red triangles). Make sure the plot has a nice title and axes labels etc.

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Databases Questions!