question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

ImportError: cannot import name 'values_from_object' from 'pandas._libs.lib'

See original GitHub issue
  • Lazy Predict version:
  • Python version:
  • Operating System:

Description

Im running libeary on google colab

What I Did

clf = LazyClassifier(verbose=0, ignore_warnings=True, custom_metric=None) models, predictions = clf.fit(X_train, X_test, y_train, y_test) models

Output =>
---------------------------------------------------------------------------
ImportError                               Traceback (most recent call last)
/usr/local/lib/python3.7/dist-packages/pyforest/__init__.py in <module>()
      1 clf = LazyClassifier(verbose=0, ignore_warnings=True, custom_metric=None)
----> 2 models, predictions = clf.fit(X_train, X_test, y_train, y_test)
      3 models

6 frames
/usr/local/lib/python3.7/dist-packages/pandas/core/computation/expressions.py in <module>()
     13 from pandas._config import get_option
     14 
---> 15 from pandas._libs.lib import values_from_object
     16 
     17 from pandas.core.dtypes.generic import ABCDataFrame

ImportError: cannot import name 'values_from_object' from 'pandas._libs.lib' (/usr/local/lib/python3.7/dist-packages/pandas/_libs/lib.cpython-37m-x86_64-linux-gnu.so)

---------------------------------------------------------------------------
NOTE: If your import is failing due to a missing package, you can
manually install dependencies using either !pip or !apt.

To view examples of installing some common dependencies, click the
"Open Examples" button below.
---------------------------------------------------------------------------

Issue Analytics

  • State:open
  • Created 2 years ago
  • Comments:7

github_iconTop GitHub Comments

2reactions
abhijitpanda890commented, Aug 16, 2021

No improvement even after uninstall and install

0reactions
zanjibarcommented, Jun 15, 2022

Under windows 11 environment, I get the same error after reinstalling.

ImportError: cannot import name 'NoDefault' from 'pandas._libs.lib' (z:\etc\pythons\p37\lib\site-packages\pandas\_libs\lib.cp37-win_amd64.pyd)
Read more comments on GitHub >

github_iconTop Results From Across the Web

ImportError: cannot import name 'NA' from 'pandas._libs.missing'
ERROR : Could not install packages due to an EnvironmentError: [WinError 5] Access is denied: 'C:\Users\Ana\Anac1\Lib\site-packages\pandas\_libs\ ...
Read more >
IO tools (text, CSV, HDF5, …) — pandas 1.5.2 documentation
Default behavior is to infer the column names: if no names are passed the ... In [1]: import pandas as pd In [2]:...
Read more >
How to Fix: No module named pandas - GeeksforGeeks
The error “No module named pandas ” will occur when there is no pandas library in your environment IE the pandas module is...
Read more >
0 - Data Science Stack Exchange
alerts import AlertType ImportError: cannot import name 'Settings' from 'pandas_profiling.config' (/usr/local/lib/python3.7/dist-packages/ ...
Read more >
No module named 'pandas' when import pandas - Microsoft Q&A
However when I run my Python script in Visual Studio Code the "import pandas as pd" returns the error above.
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found