Answered step by step
Verified Expert Solution
Question
1 Approved Answer
#remove outliers from SalePrice attribute where prices are over 500000 criteria = d_train(d_train['SalePrice'] > 500000).index d_train.drop(criteria, inplace=True) --------------------------------------------------------------------------- TypeError Traceback (most recent call last) in
#remove outliers from SalePrice attribute where prices are over 500000 criteria = d_train(d_train['SalePrice'] > 500000).index d_train.drop(criteria, inplace=True)
--------------------------------------------------------------------------- TypeError Traceback (most recent call last) in 2 df_hp_train.shape 3 #Drop outliers from SalePrice where prices are over 500000 ----> 4 criteria = d_train(d_train['SalePrice'] > 500000).index 5 d_train.drop(criteria, inplace=True) 6 TypeError: 'DataFrame' object is not callable
Step by Step Solution
There are 3 Steps involved in it
Step: 1
Get Instant Access to Expert-Tailored Solutions
See step-by-step solutions with expert insights and AI powered tools for academic success
Step: 2
Step: 3
Ace Your Homework with AI
Get the answers you need in no time with our AI-driven, step-by-step assistance
Get Started