擅长:python、mysql、java
<p><code>df_styled</code>不是数据帧,而是<code>Styler</code>对象,因此无法转换为绘图,您需要做的是将其呈现为html,然后使用单独的库将其导出。有关说明,请参见本期:</p>
<p><a href="https://stackoverflow.com/questions/45664519/export-pandas-styled-table-to-image-file">Export pandas Styled table to image file</a></p>