Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

The csv file house _ price.csv contains the basic information about houses. Read the data from the csv file house _ price.csv ,

The csv file "house_price.csv" contains the basic information about houses.
Read the data from the csv file "house_price.csv", and create a dataframe object.
Plot the histogram chart and the density chart of the distribution of bedrooms (i.e. the column "bedrooms").
Plot the scatter chart of the relationship between the column "sqft_living" and the column "price".
Plot the bar chart of the average selling price (i.e. the column "price") of houses in different cities (i.e. the column "city") and also compute the standard deviation.
Plot the box chart of the selling price (i.e. the column "price") of houses in different cities (i.e. the column "city").
In [2]:
import pandas as pd
import matplotlib. pyplot as plt
import seaborn as sns
In [9]:
#1 Read the data
#file ruth
path=' house_price. csv'
In [14]
df = pd. read_csv (path)
df
Out [14] :
\table[[,date,price,bedrooms,bathrooms,sqft_living,sqft_lot,floors,waterfront,view,condition,sqft_above,sqft_basement,yr_built,yr_renovated],[0,\table[[2014-
image text in transcribed

Step by Step Solution

There are 3 Steps involved in it

Step: 1

blur-text-image

Get Instant Access to Expert-Tailored Solutions

See step-by-step solutions with expert insights and AI powered tools for academic success

Step: 2

blur-text-image

Step: 3

blur-text-image

Ace Your Homework with AI

Get the answers you need in no time with our AI-driven, step-by-step assistance

Get Started

Recommended Textbook for

User Defined Tensor Data Analysis

Authors: Bin Dong ,Kesheng Wu ,Suren Byna

1st Edition

3030707490, 978-3030707491

Students also viewed these Databases questions