📜  python pandas table save - Python 代码示例

📅  最后修改于: 2022-03-11 14:46:51.847000             🧑  作者: Mango

代码示例1
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")