How to save the output of a jupyter notebook cell (a pandas dataframe) as a high resolution picture?
Question:
For normal plots I can set the dpi
argument to generate a high resolution picture.
But for outputs of a cell such as in this picture, which is a output by displaying a pandas dataframe, how can I save it as a high resolution picture?
The above picture is from a screen capture but I dont really like it.
Answers:
See my comment here about dataframe_image. As I now detail at my site about dataframe2img, dataframe_image is a more mature solution.
"A python package for embedding pandas DataFrames as images into pdf and markdown documents."
Note specifically in the dataframe_image README under ‘Exporting individual DataFrames’:
"You may also export directly from the DataFrame or styled DataFrame using the dfi.export
and export_png
methods, respectively."
For normal plots I can set the dpi
argument to generate a high resolution picture.
But for outputs of a cell such as in this picture, which is a output by displaying a pandas dataframe, how can I save it as a high resolution picture?
The above picture is from a screen capture but I dont really like it.
See my comment here about dataframe_image. As I now detail at my site about dataframe2img, dataframe_image is a more mature solution.
"A python package for embedding pandas DataFrames as images into pdf and markdown documents."
Note specifically in the dataframe_image README under ‘Exporting individual DataFrames’:
"You may also export directly from the DataFrame or styled DataFrame using the
dfi.export
andexport_png
methods, respectively."