Skip to content

Cannot access member "X" and "y" for type "Split" #147

@Saif807380

Description

@Saif807380

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions