-
Notifications
You must be signed in to change notification settings - Fork 5.1k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
AttributeError: 'LazyConfigValue' object has no attribute 'lower' #4369
Comments
I'm having this issue too, specifically when trying to print Pandas DataFrames. I've noticed that DataFrames print fine when I've only loaded Pandas ( I am running JupyterLab v. 0.35.4, Python v. 3.7.2, and Pandas v. 0.24.0 inside a Pipenv virtual environment on MacOS 10.14.2. Happy to provide other information if helpful. |
This also occurred to me this morning when displaying a data frame in Jupyter Lab. I'm running it through a conda environment and the import is handled by fastai. I tried importing Pandas on its own and it works fine. My set up is similar to what chadbot lists ^^ |
I have exact same experience as @A2ed |
For me removing the dataframe / series returns from my functions "resolved" the issue. I'm also having spacy in the same env and same imports, so will check that as well later today. |
I have exactly the same issue here. I haven't looked the spacy code to understand what it is causing the issue, however, as a quite dirty workaround, it is possible to add the following line: get_ipython().config.get('IPKernelApp', {})['parent_appname'] = "" This should avoid panda to break. |
I also get the issue when I have both |
As a simple workaround until the issue is fixed: from IPython.display import HTML
HTML(df) |
I'm also having same issue |
Same problem here. The workaround from @viniciuscadorereed sets notebook behavior back to normal for me (fixes default dataframe view in output cells - don't have to call get_ipython().config.get('IPKernelApp', {})['parent_appname'] = "" Current setup:
|
This will be resolved in the next update of pandas and we'll also be issuing a workaround for spaCy. If you're interested, see here for some background on the problem: pandas-dev/pandas#25036 |
This solved the issue for me. |
Does not work in case of Null in DataFrame!
|
I have the same problem in jupyter Notebook after updating my pandas Library(pip install --upgrade pandas). Then I restart the Kernel and it solved!:) AttributeError Traceback (most recent call last) ~\Anaconda3\lib\site-packages\pandas\core\frame.py in repr_html(self) ~\Anaconda3\lib\site-packages\pandas\io\formats\format.py in to_html(self, buf, encoding, classes, notebook, border) AttributeError: 'NotebookFormatter' object has no attribute 'get_result' |
This error is arising when I run a notebook in conda env that I had previously created in another env.
The text was updated successfully, but these errors were encountered: