Python 每个列和行中都有链接的表(到html)
我想为我使用to_html函数从Flask返回的pivot_表的每一列/每一行创建链接 例如: 我的代码:Python 每个列和行中都有链接的表(到html),python,pandas,pivot-table,Python,Pandas,Pivot Table,我想为我使用to_html函数从Flask返回的pivot_表的每一列/每一行创建链接 例如: 我的代码: dfResult = pd.pivot_table(df1, #columns=['Branch'], values=['Vessels Count'], columns=['Branch'],
dfResult = pd.pivot_table(df1,
#columns=['Branch'],
values=['Vessels Count'],
columns=['Branch'],
index=['Month'],
aggfunc=np.sum,
margins=True,
margins_name='Total',
fill_value=0).astype(np.float64).round(2).T
return(dfResult.to_html(classes='mystyle'))
提前谢谢