Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Getting error when executing the ensemble.fit(X_train, y_train) command #149

Open
mottibz opened this issue Aug 2, 2023 · 1 comment
Open

Comments

@mottibz
Copy link

mottibz commented Aug 2, 2023

Hello, I am trying the library. When I execute the ensemble.fit(X_train, y_train) command, I get the following error:

KeyError: "None of [Int64Index([267180, 129519, 107251, 111543, 46121, 444517, 377219, 478839, 459175, 375335,\n
...\n
314965, 15940, 119331, 442821, 122226, 236511, 311195, 152930, 76479, 169471], dtype='int64', length=483660)]
are in the [columns]"

What does this mean?

Thanks a lot, Motti

@meetu30
Copy link

meetu30 commented Sep 1, 2023

Hi, replace ensemble.fit(X_train, y_train) with ensemble.fit(X_train.values, y_train.values).
Because internally it needs numpy array format

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants