-
Notifications
You must be signed in to change notification settings - Fork 367
Explicitly don't support Index.duplicated #1131
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
|
@itholic Hello Lee, Can you give some advice? |
Softagram Impact Report for pull/1131 (head commit: 97b6700)
|
|
@RainFung Sure, let me take a look little after while :) |
databricks/koalas/indexes.py
Outdated
| column_index_names=None), | ||
| anchor=kdf) | ||
|
|
||
| def duplicated(self, keep=False): |
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.
I think we can just explicitly unsupport this API as its return type is NumPy arrow and the data size seems expected to be large.
We can just say users can easily work around by DataFrame.deduplicated() API.
>>> kdf.index.to_series().to_frame().duplicated()
0 False
1 False
2 False
3 False
4 False
5 False
6 False
7 False
8 False
9 False
Name: 0, dtype: boolI think we shouldn't implement Series.duplicated() as well.
Can you refer #744 and fix it accordingly?
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.
oh wait.
Seems like Series.duplicated() returns Series. We can support it.
https://pandas.pydata.org/pandas-docs/stable/reference/api/pandas.Series.duplicated.html
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.
Yeah, I missed it. @RainFung, can you implement this one?
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.
maybe we can implement it in a separate PR. just revert the updates for Series missing file.
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.
OK, i'll fix it today
Codecov Report
@@ Coverage Diff @@
## master #1131 +/- ##
==========================================
+ Coverage 95.15% 95.19% +0.04%
==========================================
Files 35 35
Lines 7017 7056 +39
==========================================
+ Hits 6677 6717 +40
+ Misses 340 339 -1
Continue to review full report at Codecov.
|
|
Did we made |

This PR proposes to explicitly unsupport Index.duplicated.