Skip to content

Instantly share code, notes, and snippets.

@risenW
Created December 2, 2019 13:18
Show Gist options
  • Save risenW/11c2079ef1b7f165c5cfadec51223fac to your computer and use it in GitHub Desktop.
Save risenW/11c2079ef1b7f165c5cfadec51223fac to your computer and use it in GitHub Desktop.
all_data, ntrain, ntest = ds.structdata.join_train_and_test(train_df, test_df)
print("New size of combined data {}".format(all_data.shape))
print("Old size of train data: {}".format(ntrain))
print("Old size of test data: {}".format(ntest))
#later splitting after transformations
train = all_data[:ntrain]
test = all_data[ntrain:]
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment