Thanks to visit codestin.com
Credit goes to github.com

Skip to content

ENH cartesian accepts mixed dtypes arrays #25067

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

Merged
merged 6 commits into from
Nov 29, 2022

Conversation

glemaitre
Copy link
Member

Fixes issues found when submitting #25065

cartesian was using the dtype of the first array to decide the dtype of the output array.
Now, we select the most permissive dtype from the passed input arrays.

I don't think that it was the original plan to support mixed dtype at first.

@glemaitre glemaitre added the To backport PR merged in master that need a backport to a release branch defined based on the milestone. label Nov 29, 2022
@glemaitre glemaitre added this to the 1.2 milestone Nov 29, 2022
Copy link
Member

@thomasjpfan thomasjpfan left a comment

Choose a reason for hiding this comment

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

Thank you for the fix!

Copy link
Member

@jeremiedbb jeremiedbb left a comment

Choose a reason for hiding this comment

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

LGTM. Thanks @glemaitre

Copy link
Member

@lorentzenchr lorentzenchr left a comment

Choose a reason for hiding this comment

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

LGTM. A few nitpicks.

Co-authored-by: Christian Lorentzen <[email protected]>
Copy link
Member

@ogrisel ogrisel left a comment

Choose a reason for hiding this comment

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

LGTM as well assuming CI is green.

@lorentzenchr
Copy link
Member

Auto merge would have been nice πŸ˜‰

@lesteve
Copy link
Member

lesteve commented Nov 29, 2022

Auto merge would have been nice wink

I refrained myself very hard from saying this. Now that you have said it, I am not going to disagree πŸ˜‰

@jeremiedbb jeremiedbb merged commit 86080bb into scikit-learn:main Nov 29, 2022
@jeremiedbb
Copy link
Member

dw I'm the auto-merge bot πŸ˜„

jeremiedbb pushed a commit to jeremiedbb/scikit-learn that referenced this pull request Dec 6, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
module:inspection module:utils To backport PR merged in master that need a backport to a release branch defined based on the milestone.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

6 participants