[英]Pandas dataframe not formatting correctly
I have an issue with jupyter notebook and lab, where the dataframe will load correctly, and work fine, however any sort of formatted output print will give an error我在使用 jupyter notebook 和 lab 时遇到问题,数据框将正确加载并且工作正常,但是任何类型的格式化输出打印都会出错
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 '
I've looked everywhere for even something similarish, can't find anything with a 'LazyConfigValue' anywhere.我到处寻找甚至类似的东西,在任何地方都找不到带有“LazyConfigValue”的东西。
I've reinstalled in new environments, uninstalled and reinstalled anaconda, but i'm getting the same issue everytime.我已经在新环境中重新安装,卸载并重新安装了 anaconda,但我每次都遇到同样的问题。
Anyone have any ideas what is causing this?任何人都知道是什么导致了这种情况?
Caused due to Spacy package import, as suggested by @Lukas由@Lukas 建议的 Spacy 包导入引起
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.