在IPython Notebook的Pandas DataFrame单元格中包含HTML?
我该如何在IPython笔记本中使用DataFrame生成的表格里加入HTML内容呢?
举个例子,我想做到类似这样的事情:
pd.DataFrame({
"text": ["Hello <strong>world</strong>"],
})
这样就能生成一个类似于下面这样的表格:
<table>
<tr><th></th><th>text</th></tr>
<tr><th>0</th><td>Hello <strong>world</strong></tr>
</table>