Skip to content

ENH Improve column_or_1d error message - #15926

Merged
thomasjpfan merged 3 commits into
scikit-learn:masterfrom
lesteve:improve-error-message-column-or-1d
Dec 20, 2019
Merged

ENH Improve column_or_1d error message#15926
thomasjpfan merged 3 commits into
scikit-learn:masterfrom
lesteve:improve-error-message-column-or-1d

Conversation

@lesteve

@lesteve lesteve commented Dec 19, 2019

Copy link
Copy Markdown
Member

My experience is that it is generally a good idea to state the expectation explicitly in the error message. Feel free to suggest a better error message.

@rth rth 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.

Thanks @lesteve !

@thomasjpfan thomasjpfan 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.

LGTM! Should this have a whats new entry in 0.23 under Enhancement?

@lesteve

lesteve commented Dec 20, 2019

Copy link
Copy Markdown
Member Author

Whats new entry added.

@lesteve lesteve closed this Dec 20, 2019
@lesteve lesteve reopened this Dec 20, 2019
@lesteve

lesteve commented Dec 20, 2019

Copy link
Copy Markdown
Member Author

Sorry misclick for the close/open

@thomasjpfan thomasjpfan changed the title [MRG] Improve column_or_1d error message ENH Improve column_or_1d error message Dec 20, 2019
@thomasjpfan
thomasjpfan merged commit 9626583 into scikit-learn:master Dec 20, 2019
@thomasjpfan

Copy link
Copy Markdown
Member

Thank you @lesteve !

@lesteve
lesteve deleted the improve-error-message-column-or-1d branch December 20, 2019 16:25
panpiort8 pushed a commit to panpiort8/scikit-learn that referenced this pull request Mar 3, 2020
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.

3 participants