May i know how do i drop values in y_train that correspond to x_train after splitting data?
For example: I want to drop those values in y_train that are NaN for X_train['Current_ratio']
X_train['Current_ratio'] = X_train[X_train['Current_ratio'].notnull()] y_train ???
You can do:
X_train = X_train.dropna(subset=['Current_ratio']) y_train = y_train.dropna()
You better do that before splitting though
2.1m questions
2.1m answers
60 comments
57.0k users