Issue
I would like to export a jupyter notebook cell as a png
image.
import pandas as pd
import numpy as np
np.random.seed(24)
df = pd.DataFrame({'A': np.linspace(1, 10, 10)})
df = pd.concat([df, pd.DataFrame(np.random.randn(10, 4), columns=list('BCDE'))],
axis=1)
df.iloc[3, 3] = np.nan
df.iloc[0, 2] = np.nan
df.style
df_styled = df.style.highlight_max(axis=0)
df_styled
If I run this on a jupyter notebook, the output is a nice representation of the table. I wonder if it's possible to get this representation as an image.
Solution
I've found the best solution to be dataframe2img. It's not perfect, but it's the closest thing I found.
Answered By - L. Rebelo
0 comments:
Post a Comment
Note: Only a member of this blog may post a comment.