dexplo/dataframe_image

“syntaxerror: not a png file” error in dataframe_image library

rasimsahin opened this issue · 6 comments

İ’m using Python 3.6.8, until chrome upgrade to new version I can use DFI to export styled dataframe to PNG. But after chrome upgrade , i have error like “syntaxerror: not a png file” .
I've looked through the issues but couldn't find any solution. Anyone have any ideas for a definitive solution for this?

Please add a minimal script to repoduce it and tell me about your enviroment.

if the columns is greater than 8, facing this problem @PaleNeutron Please check..

import pandas as pd
import numpy as np

# create a wide dataframe with 10 columns
df = pd.DataFrame(np.random.randn(10, 10), columns=['col{}'.format(i) for i in range(10)])

# export the dataframe as png image using dfi
dfi.export(df, 'wide_df.png')

This is working on version 0.1.10 but having issue on version 0.1.11, the latest release is throwing the issue.

@PaleNeutron Please verify the release done on apr 23.

@Madanraj-Delta

image

I can not reproduce any syntaxerror.

now its behaving same way as you shared