Skip to content

Conversation

@HyukjinKwon
Copy link
Member

This PR add series.plot.pie in Series.

Can be tested as below:

import databricks.koalas as ks
import pandas as pd

pdf = pd.DataFrame({
          'a': [1, 2, 3, 4, 5, 6, 7, 8, 9, 15, 50],
      }, index=[0, 1, 3, 5, 6, 8, 9, 9, 9, 10, 10])

kdf = ks.DataFrame(pdf)
pdf['a'].plot.line(colormap='Paired').figure.savefig("image1.png")
kdf['a'].plot.line(colormap='Paired').figure.savefig("image2.png")

image1

In case of this plot, we sample and match the row numbers around 1000.

import databricks.koalas as ks
import pandas as pd

pdf = pd.DataFrame({'a': [1, 2, 3, 4, 5, 6, 7, 8, 9, 15, 50, 100] * 100})
kdf = ks.DataFrame(pdf)
kdf['a'].plot.line(colormap='Paired').figure.savefig("image4.png")

image4

Partially addresses #665

@HyukjinKwon HyukjinKwon force-pushed the plot-line branch 2 times, most recently from 2b236ef to 0cdcb95 Compare August 21, 2019 07:38
@softagram-bot
Copy link

Softagram Impact Report for pull/671 (head commit: f4dd5c7)

⭐ Change Overview

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

📄 Full report

Give feedback on this report to [email protected]

@HyukjinKwon
Copy link
Member Author

I am merging this for today's release but please feel free to review after it's merged.

@HyukjinKwon HyukjinKwon merged commit d9147dc into databricks:master Aug 22, 2019
@HyukjinKwon HyukjinKwon deleted the plot-line branch November 6, 2019 02:21
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.

2 participants