-
Notifications
You must be signed in to change notification settings - Fork 7k
[DataFrame] Fixes dropna subset bug #2018
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
Conversation
|
Test FAILed. |
|
Test PASSed. |
devin-petersohn
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.
One minor fix, thanks for getting this in!
python/ray/dataframe/dataframe.py
Outdated
|
|
||
| if subset is not None: | ||
| subset = set(subset) | ||
| axis = pd.DataFrame()._get_axis_number(axis) |
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.
This needs to get moved back:
In [3]: df2.dropna(axis=12, how='whatever')
ValueError: No axis named 12 for object type <class 'pandas.core.frame.DataFrame'>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.
Resolved below.
|
Test PASSed. |
* master: [xray] Fix UniqueID hashing for object and task IDs. (ray-project#2017) [DataFrame] Fixing bugs in groupby (ray-project#2031) [DataFrame] Fixes dropna subset bug (ray-project#2018)
* master: [xray] Fix UniqueID hashing for object and task IDs. (ray-project#2017) [DataFrame] Fixing bugs in groupby (ray-project#2031) [DataFrame] Fixes dropna subset bug (ray-project#2018) [DataFrame] Implement where (ray-project#1989)
This fixes the bug where
subsetwas not used correctly when passed intodf.dropna.