pandas表格输出成图片

https://zhuanlan.zhihu.com/p/519513138

import os
os.chdir("D:data")
os.getcwd()

# 保存表格图片
import dataframe_image as dfi

dfi.export(
    df_2_fail_wgz.loc[
        :, ["预发货单号","客户编码","客户名称","业务员ID","业务员名称","交货单过账状态"]
    ].drop_duplicates(),
    "未过账名单.png"
)