HHammond / PrettyPandas

A Pandas Styler class for making beautiful tables
http://prettypandas.readthedocs.org/
MIT License
415 stars 23 forks source link

[Discussion] Should SVG Sparklines be supported in a future version? #23

Closed HHammond closed 8 years ago

HHammond commented 8 years ago

Sparklines are a great way to represent data. Edward Tufte has a great post on the theory and applications.

I think sparklines definitely belong in reporting, the question is whether or not PrettyPandas should implement them itself.

What would a sparkline API even look like? Would this use another python library (that seems ideal)?

I'd love the look of http://metricsgraphicsjs.org/examples.htm#lines for the design.

Here's an example of a notebook with sparklines: https://github.com/iiSeymour/sparkline-nb/blob/master/sparkline-nb.ipynb. I like the way that the notebook has a single column with series data in it. The alternative would be to somehow slice on the index and hide the cells.

HHammond commented 8 years ago

Pulling in D3 would probably be overkill on dependencies here too...

HHammond commented 8 years ago

I have another library for sparklines, it's less code in one code base which makes it easier to maintain.