-
Notifications
You must be signed in to change notification settings - Fork 3.8k
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
[Python] Confusing error when trying to predict on empty dataframe slice #1395
Comments
ping @StrikerRUS |
@Ingvar-Y Thanks for creating the issue. Could you please provide a minimum reproducible example? |
@StrikerRUS Example: the following code -
results in the following error -
|
Sign up for free
to subscribe to this conversation on GitHub.
Already have an account?
Sign in.
Hi!
Iterating through different slices of pandas.DataFrame I accidentally tried to use
Booster.predict
on an empty slice. This resulted in the following error:This is confusing because the problem stems from empty input and not from categorical dtypes of the dataframe columns which is supported.
The text was updated successfully, but these errors were encountered: