AttributeError: module 'pandas' has no attribute 'core' - Pandas can't be imported
See original GitHub issueCode Sample, a copy-pastable example if possible
import pandas as pd
import pandas_profiling
df=pd.read_csv("test.xlsx", parse_dates=True, encoding='UTF-8')
profile = pandas_profiling.ProfileReport(df)
profile.to_file(outputfile="Test.html")
Problem description
‘’‘’ Importing pandas throws hairball
executed in 87ms, finished 22:10:59 2018-10-24
---------------------------------------------------------------------------
AttributeError Traceback (most recent call last)
<ipython-input-6-0c8b739b018b> in <module>
----> 1 import pandas as pd
2 import pandas_profiling
3
4 df=pd.read_csv("test.xlsx", parse_dates=True, encoding='UTF-8')
5 profile = pandas_profiling.ProfileReport(df)
~\AppData\Local\Continuum\anaconda3\lib\site-packages\pandas\__init__.py in <module>
40 import pandas.core.config_init
41
---> 42 from pandas.core.api import *
43 from pandas.core.sparse.api import *
44 from pandas.tseries.api import *
~\AppData\Local\Continuum\anaconda3\lib\site-packages\pandas\core\api.py in <module>
8 from pandas.core.dtypes.missing import isna, isnull, notna, notnull
9 from pandas.core.arrays import Categorical
---> 10 from pandas.core.groupby.groupby import Grouper
11 from pandas.io.formats.format import set_eng_float_format
12 from pandas.core.index import (Index, CategoricalIndex, Int64Index,
~\AppData\Local\Continuum\anaconda3\lib\site-packages\pandas\core\groupby\__init__.py in <module>
1 # flake8: noqa
----> 2 from pandas.core.groupby.groupby import (
3 Grouper, GroupBy, SeriesGroupBy, DataFrameGroupBy
4 )
~\AppData\Local\Continuum\anaconda3\lib\site-packages\pandas\core\groupby\groupby.py in <module>
47 CategoricalIndex, _ensure_index)
48 from pandas.core.arrays import ExtensionArray, Categorical
---> 49 from pandas.core.frame import DataFrame
50 from pandas.core.generic import NDFrame, _shared_docs
51 from pandas.core.internals import BlockManager, make_block
~\AppData\Local\Continuum\anaconda3\lib\site-packages\pandas\core\frame.py in <module>
72 create_block_manager_from_arrays,
73 create_block_manager_from_blocks)
---> 74 from pandas.core.series import Series
75 from pandas.core.arrays import Categorical, ExtensionArray
76 import pandas.core.algorithms as algorithms
~\AppData\Local\Continuum\anaconda3\lib\site-packages\pandas\core\series.py in <module>
65 from pandas.compat.numpy import function as nv
66
---> 67 import pandas.core.ops as ops
68 import pandas.core.algorithms as algorithms
69
AttributeError: module 'pandas' has no attribute 'core'
…
Expected Output
None
Output of pd.show_versions()
PD doesn’t load, so
conda list pandas
# packages in environment at C:\Users\XXXX\AppData\Local\Continuum\anaconda3:
#
# Name Version Build Channel
pandas 0.23.4 py36h830ac7b_0 defaults
Issue Analytics
- State:
- Created 5 years ago
- Comments:5 (2 by maintainers)
Top Results From Across the Web
module 'pandas' has no attribute 'core' in iPython Notebook ...
After updating my bash profile, the error AttributeError: module 'pandas' has no attribute 'core' did not appear anymore.
Read more >AttributeError: module 'pandas' has no attribute 'core' #3014
After replacing the pandas import with modin, I am currently getting two exceptions. AttributeError: module 'pandas' has no attribute 'core' ...
Read more >[Code]-AttributeError: module 'pandas' has no attribute 'core'
I faced similar error when importing pandas.core.config . It returned AttributeError: module 'pandas.core' has no attribute 'config'.
Read more >I get "module 'pandas' has no attribute 'core'" error when trying ...
I get "module 'pandas' has no attribute 'core'" error when trying to import pandas (or any module) into CoLab. I use Google CoLab...
Read more >module 'pandas' has no attribute 'core' in iP - YouTube
Pandas : Importing Pandas gives error AttributeError : module ' pandas ' has no attribute ' core ' in iPython Notebook [ Beautify...
Read more >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
Done - thanks.
More info for those interested: https://stackoverflow.com/questions/52979322/matplotlib-3-0-0-cannot-import-name-get-backend-from-matplotlib
That’s a known issue with the latest point release of python and matplotlib / Qt. Try downgrading to python=3.6.6.