text_plain_output_1.png
import pandas as pd

df_train = pd.read_csv('/kaggle/input/house-prices-advanced-regression-techniques/train.csv')
df_train.shape

idsUnique = len(set(df_train.Id))
idsTotal = df_train.shape[0]
idsDupli = idsTotal - idsUnique
df_train.drop('Id', axis=1, inplace=True)

plt.scatter(df_train.GrLivArea, df_train.SalePrice)
plt.title('Looking for outliers')
plt.xlabel('GrLivArea')
plt.ylabel('SalePrice')
plt.show()
df_train = df_train[df_train.GrLivArea < 4000]