-
Notifications
You must be signed in to change notification settings - Fork 358
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
Conversation
Codecov Report
@@ 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
Continue to review full report at Codecov.
|
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.
LGTM.
databricks/koalas/frame.py
Outdated
@@ -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 |
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.
We need to add "at this moment" here as well?
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.
@ueshin Thanks, I just added it !
Softagram Impact Report for pull/774 (head commit: de9ecdc)⭐ Change Overview
📄 Full report
Impact Report explained. Give feedback on this report to [email protected] |
Thanks! merging. |
Since pandas dataframe support axis parameter in dataframe.diff.
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.
And currently we only support axis 0, or axis 1 for some functions, so i plan to implement it soon.