Skip to content
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

Add axis parameter to dataframe.diff #774

Merged
merged 3 commits into from
Sep 13, 2019
Merged

Conversation

itholic
Copy link
Contributor

@itholic itholic commented Sep 12, 2019

Since pandas dataframe support axis parameter in dataframe.diff.

스크린샷 2019-09-12 오후 1 47 32

I think we need to support it either. (And it was already commented as TODO)

In addition, now the nunique function only support the axis parameter as 0 (without 'index'), also fix it.

스크린샷 2019-09-12 오후 1 53 41

And currently we only support axis 0, or axis 1 for some functions, so i plan to implement it soon.

@codecov-io
Copy link

codecov-io commented Sep 12, 2019

Codecov Report

Merging #774 into master will decrease coverage by 0.05%.
The diff coverage is 100%.

Impacted file tree graph

@@            Coverage Diff             @@
##           master     #774      +/-   ##
==========================================
- Coverage    93.9%   93.84%   -0.06%     
==========================================
  Files          32       32              
  Lines        5691     5755      +64     
==========================================
+ Hits         5344     5401      +57     
- Misses        347      354       +7
Impacted Files Coverage Δ
databricks/koalas/frame.py 96.45% <100%> (+0.07%) ⬆️
databricks/koalas/plot.py 93.97% <0%> (-1.06%) ⬇️
databricks/koalas/namespace.py 81.22% <0%> (+0.22%) ⬆️

Continue to review full report at Codecov.

Legend - Click here to learn more
Δ = absolute <relative> (impact), ø = not affected, ? = missing data
Powered by Codecov. Last update 224cbe4...de9ecdc. Read the comment docs.

Copy link
Collaborator

@ueshin ueshin left a comment

Choose a reason for hiding this comment

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

LGTM.

databricks/koalas/frame.py Outdated Show resolved Hide resolved
databricks/koalas/frame.py Outdated Show resolved Hide resolved
@@ -2267,7 +2271,8 @@ def diff(self, periods=1):
internal = self._internal.copy(sdf=sdf, data_columns=[c.name for c in applied])
return DataFrame(internal)

def nunique(self, axis: int = 0, dropna: bool = True, approx: bool = False,
# TODO: axis should support 1 or 'columns' either
Copy link
Collaborator

@ueshin ueshin Sep 13, 2019

Choose a reason for hiding this comment

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

We need to add "at this moment" here as well?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

@ueshin Thanks, I just added it !

@softagram-bot
Copy link

Softagram Impact Report for pull/774 (head commit: de9ecdc)

⭐ Change Overview

Showing the changed files, dependency changes and the impact - click for full size
(Open in Softagram Desktop for full details)

📄 Full report

Impact Report explained. Give feedback on this report to [email protected]

@itholic itholic closed this Sep 13, 2019
@itholic itholic deleted the add_axis branch September 13, 2019 06:50
@itholic itholic restored the add_axis branch September 13, 2019 06:52
@itholic itholic reopened this Sep 13, 2019
@ueshin
Copy link
Collaborator

ueshin commented Sep 13, 2019

Thanks! merging.

@ueshin ueshin merged commit 45b1bf5 into databricks:master Sep 13, 2019
@itholic itholic deleted the add_axis branch October 14, 2019 04:32
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.

5 participants