1

I am creating a conditional formatting table in Python using pandas and seaborn which gives me a pandas.io.formats.style.Styler object. I need to export this as an image file .

I cannot use imgkit, unable to install wkhtmltopdf.


    import pandas as pd
    import seaborn as sns

    iris = pd.read_excel('iris.xlsx')
    iris.head()

    cm = sns.diverging_palette(240, 10, sep=20, as_cmap=True)
    sample = iris.style.background_gradient(cmap=cm)
    sample

2
  • But you did understand stackoverflow.com/questions/45664519/… ? Commented Aug 2, 2019 at 13:26
  • I understood the answer to that. I specifically mentioned that I cannot install wkhtml2pdf so I cannot use imgkit. I am looking for an alternate solution. Commented Aug 5, 2019 at 8:20

0

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.