Skip to content

Instantly share code, notes, and snippets.

@roboreport
Created January 28, 2019 02:44
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save roboreport/ea9eee790890ac645af1338fca5068fe to your computer and use it in GitHub Desktop.
Save roboreport/ea9eee790890ac645af1338fca5068fe to your computer and use it in GitHub Desktop.
train = df[(df.year > 2006) & (df.year < 2017)]
test = df[df.year >= 2017]
feature_names = ['region_cd', 'year', 'month', 'building_type',
'tradeprice_sido', 'construction_realized_amount','cd',
'spirit_deposit_rate','exchange_rate','composite_stock_price_index',
'economy_growth','exchequer_bond_three','household_loan_all',
'mortgage_all','numberofnosells','unsalenum_c']
X_train = train[feature_names]
X_test = test[feature_names]
lable_name = "tradeprice_sido_n1"
Y_train = train[lable_name]
Y_test = test[lable_name]
print(X_train.shape)
print(X_test.shape)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment