[DataFrame] Implements mode, to_datetime, and get_dummies#1956
[DataFrame] Implements mode, to_datetime, and get_dummies#1956devin-petersohn merged 15 commits intoray-project:masterfrom
Conversation
|
Test PASSed. |
|
Test PASSed. |
|
Test FAILed. |
devin-petersohn
left a comment
There was a problem hiding this comment.
Left a few comments, overall looks good.
python/ray/dataframe/dataframe.py
Outdated
There was a problem hiding this comment.
add numeric_only to remove the check.
python/ray/dataframe/datetime.py
Outdated
There was a problem hiding this comment.
For the error checking, do you need all of the other parameters?
python/ray/dataframe/reshape.py
Outdated
|
Test PASSed. |
python/ray/dataframe/dataframe.py
Outdated
There was a problem hiding this comment.
You can probably reuse the code across both if cases, since they're largely the same
python/ray/dataframe/dataframe.py
Outdated
There was a problem hiding this comment.
Rename this as it's too similar to utils._reindex_helper
|
Thanks @Veryku @devin-petersohn for reviewing! I addressed the comments above. |
|
Test PASSed. |
python/ray/dataframe/reshape.py
Outdated
There was a problem hiding this comment.
Missing a return statement?
There was a problem hiding this comment.
oh good catch, thanks!
python/ray/dataframe/reshape.py
Outdated
There was a problem hiding this comment.
This name is pretty undescriptive
|
Test PASSed. |
|
Test PASSed. |
|
Test PASSed. |
|
Test PASSed. |
|
Jenkins, retest this please. |
|
Test FAILed. |
|
Jenkins, retest this please. |
|
Test PASSed. |
|
Merged, thanks @kunalgosar |
* magic-methods: fmt Fix IndentationError Write magic methods for SampleBatch/PartialRollout Clean up syntax for supported Python versions. (ray-project#1963) [DataFrame] Implements mode, to_datetime, and get_dummies (ray-project#1956) [DataFrame] Fix dtypes (ray-project#1930) keep_dims -> keepdims (ray-project#1980) add pthread linking (ray-project#1986) [DataFrame] Add layer of abstraction to allow OID instantiation (ray-project#1984) [DataFrame] Fix blocking issue on _IndexMetadata passing (ray-project#1965)
* master: (21 commits) Expand local_dir in Trial init (ray-project#2013) Fixing ascii error for Python2 (ray-project#2009) [DataFrame] Implements df.update (ray-project#1997) [DataFrame] Implements df.as_matrix (ray-project#2001) [DataFrame] Implement quantile (ray-project#1992) [DataFrame] Impement sort_values and sort_index (ray-project#1977) [DataFrame] Implement rank (ray-project#1991) [DataFrame] Implemented prod, product, added test suite (ray-project#1994) [DataFrame] Implemented __setitem__, select_dtypes, and astype (ray-project#1941) [DataFrame] Implement diff (ray-project#1996) [DataFrame] Implemented nunique, skew (ray-project#1995) [DataFrame] Implements filter and dropna (ray-project#1959) [DataFrame] Implements df.pipe (ray-project#1999) [DataFrame] Apply() for Lists and Dicts (ray-project#1973) Clean up syntax for supported Python versions. (ray-project#1963) [DataFrame] Implements mode, to_datetime, and get_dummies (ray-project#1956) [DataFrame] Fix dtypes (ray-project#1930) keep_dims -> keepdims (ray-project#1980) add pthread linking (ray-project#1986) [DataFrame] Add layer of abstraction to allow OID instantiation (ray-project#1984) ...
* master: (25 commits) [DataFrame] Add direct pandas imports for MVP (ray-project#1960) Make ActorHandles pickleable, also make proper ActorHandle and ActorC… (ray-project#2007) Expand local_dir in Trial init (ray-project#2013) Fixing ascii error for Python2 (ray-project#2009) [DataFrame] Implements df.update (ray-project#1997) [DataFrame] Implements df.as_matrix (ray-project#2001) [DataFrame] Implement quantile (ray-project#1992) [DataFrame] Impement sort_values and sort_index (ray-project#1977) [DataFrame] Implement rank (ray-project#1991) [DataFrame] Implemented prod, product, added test suite (ray-project#1994) [DataFrame] Implemented __setitem__, select_dtypes, and astype (ray-project#1941) [DataFrame] Implement diff (ray-project#1996) [DataFrame] Implemented nunique, skew (ray-project#1995) [DataFrame] Implements filter and dropna (ray-project#1959) [DataFrame] Implements df.pipe (ray-project#1999) [DataFrame] Apply() for Lists and Dicts (ray-project#1973) Clean up syntax for supported Python versions. (ray-project#1963) [DataFrame] Implements mode, to_datetime, and get_dummies (ray-project#1956) [DataFrame] Fix dtypes (ray-project#1930) keep_dims -> keepdims (ray-project#1980) ...
Import
uniqueandvalue_countsdirectly from pandas.This PR implements
mode,to_datetime, andget_dummiesand includes a fix for__getitem__.