Question: 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

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!