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

[python-package] replace np.find_common_type with np.result_type #5999

Merged
merged 1 commit into from Aug 4, 2023

Conversation

jmoralez
Copy link
Collaborator

@jmoralez jmoralez commented Jul 21, 2023

Replaces the use of np.find_common_type with np.result_type to determine the type that should be used when coercing a pandas dataframe to a numpy array.

This function was added in numpy 1.6 (docs), which is from May 2011 and the lowest version we support is 1.12 so there shouldn't be any compatibility issues.

Fixes #5990.

Copy link
Collaborator

@jameslamb jameslamb left a comment

Choose a reason for hiding this comment

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

Excellent, thank you so much!

I added the maintenance label on this PR since it didn't have one yet, but up to you if you want to categorize it as fix. I could go either way.

@jameslamb jameslamb merged commit 3fe1372 into master Aug 4, 2023
41 checks passed
@jameslamb jameslamb deleted the np-common-type branch August 4, 2023 16:22
Copy link

github-actions bot commented Nov 8, 2023

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 Nov 8, 2023
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
2 participants