text_html_output_1.png
import pandas as pd

train_df = pd.read_csv('/kaggle/input/playground-series-s3e1/train.csv')
test_df = pd.read_csv('/kaggle/input/playground-series-s3e1/test.csv')

test_df.shape

test_df['Total Rooms'] = test_df['AveRooms'].apply(lambda x: int(x))
test_df = test_df.drop(['AveRooms'], axis=1)
test_df['HouseAge'] = test_df['HouseAge'].apply(lambda x: int(x))
test_df['Bed Rooms'] = test_df['AveBedrms'].apply(lambda x: int(x))
test_df = test_df.drop(['AveBedrms'], axis=1)
test_df['AveOccup'] = test_df['AveOccup'].apply(lambda x: int(x))

test_df.head(2)