image_output_1.png
import pandas as pd # data processing, CSV file I/O (e.g. pd.read_csv)

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

(df_train.shape, df_test.shape)

numerical_features = [cols for cols in df_train if df_train[cols].dtype in ['int', 'float']]
categorical_features = [cols for cols in df_train if df_train[cols].dtype == 'object']
print(f'len of numerical features: {len(numerical_features)}')
print(f'len of categorical features: {len(categorical_features)}')