我的数据框过去是这样显示的:
然后,有一天,我意识到边框不再显示了:
我不知道发生了什么。
我使用 Python、pandas、iPython 和 Spyder 附带的 Anaconda 包安装了 Python 3.4。所以,我通过 Spyder 环境访问 iPython。
出现边框问题后,我卸载了Anaconda,重新安装,还是出现了同样的问题。
如有任何帮助,我们将不胜感激。
最佳答案
此功能已在 IPython 3.0 中删除。
这是 reported 2015 年 5 月访问 Anaconda Google 群组页面。
I think you're [were] using an old version of Spyder (2.3.0, 2.3.1 or 2.3.2) on Windows because support for printing DataFrames as html tables was removed in recent versions (i.e. since [Spyder] 2.3.3).
I'm sorry we've had to remove it, but it was causing other problems and (more importantly) it stopped to be supported by IPython 3.0+.
然后在 later 中更明确地说明帖子:
There is no way to get the functionality mentioned by the OP again because it was removed by IPython in its 3.0 version.
关于python - 在 iPython 中无边框显示的 Pandas 数据框,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/32032426/