Pandas数据帧格式不正确

2024-04-19 18:14:24 发布

您现在位置:Python中文网/ 问答频道 /正文

我对jupyter笔记本和实验室有一个问题,在那里数据帧将正确加载,工作正常,但是任何形式的格式化输出打印都会给出错误

AttributeError                            Traceback (most recent call last)
~\AppData\Local\Continuum\anaconda3\envs\Test\lib\site-packages\IPython\core\formatters.py in __call__(self, obj)
343             method = get_real_method(obj, self.print_method)
344             if method is not None:
--> 345                 return method()
346             return None
347         else:

~\AppData\Local\Continuum\anaconda3\envs\Test\lib\site-packages\pandas\core\frame.py in _repr_html_(self)
647         # display HTML, so this check can be removed when support for
648         # IPython 2.x is no longer needed.
--> 649         if console.in_qtconsole():
650             # 'HTML output is disabled in QtConsole'
651             return None

~\AppData\Local\Continuum\anaconda3\envs\Test\lib\site-packages\pandas\io\formats\console.py in in_qtconsole()
121             ip.config.get('KernelApp', {}).get('parent_appname', "") or
122             ip.config.get('IPKernelApp', {}).get('parent_appname', ""))
--> 123         if 'qtconsole' in front_end.lower():
124             return True
125     except NameError:

AttributeError: 'LazyConfigValue' object has no attribute '

我到处找过,哪怕是类似的东西,也找不到任何带有“LazyConfigValue”的东西。在

每次我都会在新的环境下重新安装。在

有人知道是什么原因造成的吗?在


Tags: inpytestselfgetreturnlibpackages