Skip to content

[DataFrame] Fixes dropna subset bug - #2018

Merged
devin-petersohn merged 2 commits into
ray-project:masterfrom
kunalgosar:dropna_fix
May 10, 2018
Merged

devin-petersohn merged 2 commits into
ray-project:masterfrom
kunalgosar:dropna_fix

Conversation

@kunalgosar

@kunalgosar kunalgosar commented May 9, 2018

Copy link
Copy Markdown
Contributor

This fixes the bug where subset was not used correctly when passed into df.dropna.

@kunalgosar kunalgosar changed the title [DataFrame] Fixes dropna and adds axis utilities [DataFrame] Fixes dropna subset bug May 9, 2018
@AmplabJenkins

Copy link
Copy Markdown

Test FAILed.
Refer to this link for build results (access rights to CI server needed):
https://amplab.cs.berkeley.edu/jenkins//job/Ray-PRB/5283/
Test FAILed.

@AmplabJenkins

Copy link
Copy Markdown

Test PASSed.
Refer to this link for build results (access rights to CI server needed):
https://amplab.cs.berkeley.edu/jenkins//job/Ray-PRB/5284/
Test PASSed.

@devin-petersohn devin-petersohn 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.

One minor fix, thanks for getting this in!

Comment thread python/ray/dataframe/dataframe.py Outdated

if subset is not None:
subset = set(subset)
axis = pd.DataFrame()._get_axis_number(axis)

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.

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'>

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Resolved below.

@AmplabJenkins

Copy link
Copy Markdown

Test PASSed.
Refer to this link for build results (access rights to CI server needed):
https://amplab.cs.berkeley.edu/jenkins//job/Ray-PRB/5301/
Test PASSed.

@devin-petersohn
devin-petersohn merged commit b79912e into ray-project:master May 10, 2018
alok added a commit to alok/ray that referenced this pull request May 11, 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)
alok added a commit to alok/ray that referenced this pull request May 11, 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)
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