Pandas: Feature request: Save Jupyter rendering of pd.DataFrame as a .png or .pdf

Created on 17 Aug 2016  路  5Comments  路  Source: pandas-dev/pandas

I've been screenshotting the dataframes from Jupyter in my notes but it would be really cool if you could save the actual renderings. I looked it up and I think this guy figured out how to do it http://stackoverflow.com/questions/19726663/how-to-save-the-pandas-dataframe-series-data-as-a-figure

Feature request:

DF = pd.DataFrame(somedata)

DF.to_render(path/to/file, format = "pdf")

or something along those lines to get something like:
screen shot 2016-08-05 at 8 49 06 am

Output-Formatting

Most helpful comment

I think it would be great to have that in pandas. The solution already exist (see above) and the demand for the feature is clearly high (50k views on the two StackOverflow questions on the subject)

All 5 comments

Seems out of scope for pandas to me.

That's just HTML, so you can save that to a file with df.to_html() and convert it with something like phantomjs

agreed. out of scope.

@TomAugspurger thanks Ill make a wrapper for it.

I think it would be great to have that in pandas. The solution already exist (see above) and the demand for the feature is clearly high (50k views on the two StackOverflow questions on the subject)

I see this would be useful as we need the rendered table in the formal writing of a data project.

Was this page helpful?
0 / 5 - 0 ratings