Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR PYTHON

python pandas table save

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")
Source by stackoverflow.com #
 
PREVIOUS NEXT
Tagged: #python #pandas #table #save
ADD COMMENT
Topic
Name
2+5 =