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

Fix tests with pandas 2.0. #9014

Merged
merged 3 commits into from Apr 10, 2023
Merged

Conversation

trivialfis
Copy link
Member

@trivialfis trivialfis commented Apr 7, 2023

  • is_categorical is replaced by is_categorical_dtype.
  • one hot encoding returns boolean type instead of integer type.

Close #9010 .

- `is_categorical` is replaced by `is_categorical_dtype`.
- one hot encoding returns boolean type instead of integer type.
@trivialfis trivialfis merged commit 2c8d735 into dmlc:master Apr 10, 2023
24 checks passed
@trivialfis trivialfis deleted the fix-pandas-2.0 branch April 10, 2023 16:17
trivialfis added a commit to trivialfis/xgboost that referenced this pull request Jun 9, 2023
* Fix tests with pandas 2.0.

- `is_categorical` is replaced by `is_categorical_dtype`.
- one hot encoding returns boolean type instead of integer type.
@trivialfis trivialfis mentioned this pull request Jun 9, 2023
7 tasks
trivialfis added a commit that referenced this pull request Jun 10, 2023
* Fix tests with pandas 2.0.

- `is_categorical` is replaced by `is_categorical_dtype`.
- one hot encoding returns boolean type instead of integer type.
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

Successfully merging this pull request may close these issues.

Compatibility with the latest pandas.
2 participants