-
Notifications
You must be signed in to change notification settings - Fork 6k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
[data] add column relaxation (#49221)
## Why are these changes needed? Aligns `ray.data.Dataset.add_column` to it's docstring and allows more flexibility for adding columns to pandas dataframes. ## Related issue number Closes #49114 ## Checks - [ ] I've signed off every commit(by using the -s flag, i.e., `git commit -s`) in this PR. - [ ] I've run `scripts/format.sh` to lint the changes in this PR. - [ ] I've included any doc changes needed for https://docs.ray.io/en/master/. - [ ] I've added any new APIs to the API Reference. For example, if I added a method in Tune, I've added it in `doc/source/tune/api/` under the corresponding `.rst` file. - [x] I've made sure the tests are passing. Note that there might be a few flaky tests, see the recent failures at https://flakey-tests.ray.io/ - Testing Strategy - [x] Unit test - [ ] Release tests - [ ] This PR is not tested :( `python -m pytest -v -s python\ray\data\tests\test_map.py::test_add_column` --------- Signed-off-by: Ivan Webber <[email protected]> Signed-off-by: Ivan Webber <[email protected]>
- Loading branch information
1 parent
08b4309
commit 5da66ea
Showing
2 changed files
with
20 additions
and
46 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters