dexplo / jupyter_to_medium

Python package for publishing Jupyter Notebooks as Medium blogposts
https://dexplo.org/jupyter_to_medium
MIT License
147 stars 14 forks source link

BUG: groupby table image doesn't match output format #7

Closed discdiver closed 4 years ago

discdiver commented 4 years ago

Thanks for your quick turn around today, Ted!

Found a new issue.

The resulting image from a groupby combines the multi-indexes.

Maybe this is an issue with all multi-indexes? I haven't explored.

Using matplotlib to convert the image. Using jtm v 0.1.1

Screenshots of the output from the same cell in Jupyter and as displayed in Medium are attached.

Screen Shot 2020-06-26 at 11 42 21 PM Screen Shot 2020-06-26 at 11 42 14 PM

tdpetrou commented 4 years ago

I'm working on this, should have something out soon.

tdpetrou commented 4 years ago

I made a big update to how matplotlib creates tables. Images are much nicer now. pandas groupby tables are almost there. The index values just repeat. I might try and get it to look exactly the same, but I'm happy with the improvement and will close the issue.

Can you upgrade to version 0.2, test, and report back here?