-
Notifications
You must be signed in to change notification settings - Fork 367
Implement (DataFrame|Series).plot.pie in plotly #1971
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
|
This PR is dependent on #1970 |
Codecov Report
@@ Coverage Diff @@
## master #1971 +/- ##
=======================================
Coverage 94.59% 94.60%
=======================================
Files 49 50 +1
Lines 10870 10905 +35
=======================================
+ Hits 10283 10317 +34
- Misses 587 588 +1
Continue to review full report at Codecov.
|
76d7112 to
cd2ccbd
Compare
cd2ccbd to
f64d105
Compare
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.
|
Ah .. I don't know why I missed #1971 (review). Sure, let me address it. |
|
Yeah, pandas doesn't support. This is something Koalas only supports. |
|
Oh, sorry I misread. Okay, that seems a bit different. Let me take a look too. |
cb40d45 to
f7b52c4
Compare
c24bc97 to
b3cd2a6
Compare
4ba0b0a to
516fa98
Compare
| kdf1 = self.kdf1 | ||
| check_pie_plot(kdf1) | ||
|
|
||
| # TODO: support multi-index columns |
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.
These are not supported in plotly .. 😢
| return self(kind="area", x=x, y=y, **kwds) | ||
|
|
||
| def pie(self, y=None, **kwds): | ||
| def pie(self, **kwds): |
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.
Shall we annotate the return type here?
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.
Will add them all in a separate PR.
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.
Sounds good!
ueshin
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.
LGTM.
|
Thanks guys! |
|
Great |
|
Great! |



This PR implements
DataFrame.plot.piein plotly as below:Binder to test: https://mybinder.org/v2/gh/HyukjinKwon/koalas/plotly-pie?filepath=docs%2Fsource%2Fgetting_started%2F10min.ipynb