pip install dataframe_image
import dataframe_image as dfi
df = pd.DataFrame(np.random.randn(6, 6), columns=list('ABCDEF'))
# style your table if you want by:
df_styled = df.style.background_gradient() #adding a gradient based on values in cell
dfi.export(df_styled,"mytable.png")
# save and load of DataFrames with pickle
dateiTraining = "daten/Training.zip"
trainDataFrame.to_pickle( self.dateiTraining )
if ( os.path.exists( dateiTraining ) ):
testDataFrame = panda.read_pickle( dateiTraining )