Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

import pandas as pd housing _ df = pd . read _ csv ( ' WestRoxbury . csv ' ) housing _ df . shape

import pandas as pd
housing_df = pd.read_csv('WestRoxbury.csv')
housing_df.shape
housing_df.head()
print(housing_df)
housing_df = housing_df.rename
(columns={'TOTAL VALUE ': 'TOTAL_VALUE'})
housing_df.columns =[s.strip().replace('','_')for s in housing_df.columns]
housing_df.loc[0:3]
housing_df.iloc[0:4]
housing_df['TOTAL_VALUE'].iloc[0:10]
housing_df.iloc[0:10]['TOTAL_VALUE']
housing_df.iloc[0:10].TOTAL_VALUE

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

Students also viewed these Databases questions