'Is there a way to delete certain rows by bundle?
To make datafram dataset into a test set and a train set, I split it to X_train, X_test, y_train, y_test.
To get only train set, I think I have to extract only X_train rows or delete X_test rows.
So I typed as below. However, I guess that X_test_y_test = dataset[dataset['Label']== X_test].index is problem... How can I get only train set?
Sources
This article follows the attribution requirements of Stack Overflow and is licensed under CC BY-SA 3.0.
Source: Stack Overflow
| Solution | Source |
|---|


