【问题标题】:Formatting of pandas dataframes in Jupyter Notebook在 Jupyter Notebook 中格式化 pandas 数据帧
【发布时间】:2018-05-23 03:31:09
【问题描述】:

当我在 Jupyter Notebook 中显示 pandas 数据框时,使用例如df.head(),我得到一个全白列的显示。但是,在某些网站上,我看到它们被格式化为交替的白色和灰色行 here。这可能在笔记本里面吗?

【问题讨论】:

    标签: pandas dataframe jupyter


    【解决方案1】:

    这是 Jupyter 的默认表格样式中的 a recent change。当我升级 Jupyter 时,我在自己的笔记本中看到了这种变化。

    【讨论】:

    • 谢谢。 $ conda update notebook 解决了。欣赏它。
    猜你喜欢
    • 2020-05-02
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 2020-05-21
    • 1970-01-01
    • 2022-07-28
    相关资源
    最近更新 更多