In the train_test_split stage, when the number of rows in train_df and train_y are unequal, an error should be thrown. However, the line that throws the error, crashes the program with the error Cannot access member 'X' and 'y' for type 'Split'. Unknown members.
Expected Behaviour
Validate input should throw the following error Number of samples of target label and feature dataframe unequal.
Ref -
|
f" {self.X.shape[0]}\nSamples in target label: {self.y.shape[0]}" |
Environment:
- Python version: Any
- Preprocessy version: Any
- Jupyter Notebook or Python Script: Both
In the
train_test_splitstage, when the number of rows intrain_dfandtrain_yare unequal, an error should be thrown. However, the line that throws the error, crashes the program with the errorCannot access member 'X' and 'y' for type 'Split'. Unknown members.Expected Behaviour
Validate input should throw the following error
Number of samples of target label and feature dataframe unequal.Ref -
preprocessy/preprocessy/data_splitting/_split.py
Line 78 in d8d1b1b
Environment: