printing.py 文件源码

python
阅读 24 收藏 0 点赞 0 评论 0

项目:polara 作者: Evfro 项目源码 文件源码
def print_frames(dataframes):
    if not isinstance(dataframes, tuple):
        return dataframes

    border_style = u'\"border: none\"'
    cells = [u'<td style={}> {} </td>'.format(border_style, df._repr_html_()) for df in dataframes]

    table = '''<table style={}>
    <tr style={}>'''.format(border_style, border_style) +\
    '\n'.join(cells)+\
    '''
    </tr>
    </table>'''

    return HTML(table)

# from http://thesmithfam.org/blog/2012/10/25/temporarily-suppress-console-output-in-python/#
评论列表
文章目录


问题


面经


文章

微信
公众号

扫码关注公众号