Skip to content

[tests][python] fix nan in pandas bool column - #6530

Merged
jameslamb merged 1 commit into
masterfrom
pandas-bool
Jul 10, 2024
Merged

jameslamb merged 1 commit into
masterfrom
pandas-bool

Conversation

@StrikerRUS

@StrikerRUS StrikerRUS commented Jul 10, 2024 •

Copy link
Copy Markdown
Collaborator

Unblock CI.

Fix for recent pandas error

E           TypeError: Invalid value 'nan' for dtype 'bool'

For example, https://github.com/microsoft/LightGBM/actions/runs/9863990666/job/27237966034?pr=6526#step:4:546

Everything is OK with boolean dtype later in this test:
https://github.com/microsoft/LightGBM/blob/fc788a51b61368f78246e5c450f0ea77d263eb2b/tests/python_package_test/test_engine.py#L4175

@StrikerRUS
StrikerRUS marked this pull request as ready for review July 10, 2024 02:40
@StrikerRUS StrikerRUS changed the title [WIP] [tests][python] fix nan in pandas bool column [tests][python] fix nan in pandas bool column Jul 10, 2024
@StrikerRUS StrikerRUS added awaiting review blocking CI will be unsuccessful until this is resolved. maintenance labels Jul 10, 2024

@jameslamb jameslamb left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

ok yeah, nice! I'm glad theze tests against the pandas nightlies helped catch something so early 😁

@jameslamb jameslamb removed awaiting review blocking CI will be unsuccessful until this is resolved. labels Jul 10, 2024
@jameslamb
jameslamb merged commit 6662d55 into master Jul 10, 2024
@jameslamb
jameslamb deleted the pandas-bool branch July 10, 2024 04:55
@github-actions

Copy link
Copy Markdown
Contributor

This pull request has been automatically locked since there has not been any recent activity since it was closed.
To start a new related discussion, open a new issue at https://github.com/microsoft/LightGBM/issues including a reference to this.

@github-actions github-actions Bot locked as resolved and limited conversation to collaborators Jul 17, 2025
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants