-
-
Notifications
You must be signed in to change notification settings - Fork 26.5k
ENH Allow path-like objects in load_svmlight_file. #19075
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
ENH Allow path-like objects in load_svmlight_file. #19075
Conversation
Add also a test for this functionality.
Add what's new line for the PR.
thomasjpfan
left a comment
There was a problem hiding this 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 PR! I am okay with adding path-like support.
doc/whats_new/v1.2.rst
Outdated
| Cython implementation, providing 2-4x speedups. | ||
| :pr:`23127` by :user:`Meekail Zain <micky774>` | ||
|
|
||
| - |Enhancement| Path-like objects, such as those created with pathlib are now allowed as paths in :func:`datasets.load_svmlight_file` and :func:`datasets.load_svmlight_files`. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
May this be wrapped to be less than 88 characters per line to match the rest of the file?
Co-authored-by: Thomas J. Fan <[email protected]>
thomasjpfan
left a comment
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I left some minor docstring related comments, otherwise LGTM!
jeremiedbb
left a comment
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thanks @vnmabus
Co-authored-by: Thomas J. Fan <[email protected]>
Co-authored-by: Thomas J. Fan <[email protected]>
Path-like objects, such as those created with pathlib are now allowed as paths in the
load_svmlight_fileandload_svmlight_filesfunctions.Add also a test for this functionality.