Found the answer myself, I was using the latest Pandas v1.2.0, where the panel has been removed from Pandas module 0.25.0 onwards.

print(pd.__version__)
print(np.__version__)
1.2.0
1.19.4

From 0.25.0 / 1.2.0 release notes

Warning: The panel has been fully removed. For N-D labeled data structures, please use xarray

unless you want to use xarray, you need to uninstall and install the version prior to that.

Answer from Jijo John on Stack Overflow
🌐
Stack Overflow
stackoverflow.com › questions › 72581248 › how-to-solve-the-error-module-pandas-has-no-attribute-panel
python - How to solve the error module 'pandas' has no attribute 'Panel'? - Stack Overflow
import datetime import pandas as pd import statsmodels.api as sm import yfinance as yf from statsmodels.tsa.stattools import adfuller AttributeError Traceback (most recent call last) <ipython-input-12-cd11bbf2a7c9> in <module> 1 import datetime 2 import pandas as pd ----> 3 import statsmodels.api as sm 4 import yfinance as yf 5 from statsmodels.tsa.stattools import adfuller D:\anaconda\lib\site-packages\statsmodels\api.py in <module> 5 from . import regression 6 from .regression.linear_model import OLS, GLS, WLS, GLSAR ----> 7 from .regression.recursive_ls import RecursiveLS 8 from .regression
Discussions

AttributeError: module 'pandas.core' has no attribute 'panel'
If you try to use a numpy array, list, dict as data in PutPythonAsWF(data, app=eviewsapp, newwf=False), we get an error in this elif statement: elif isinstance(obj, pa.core.panel.Panel): · Remove line 211 to 224 in init.py fixes those error and allows you to load an numpy array into eviews More on github.com
🌐 github.com
1
August 31, 2021
AttributeError: module 'pandas' has no attribute 'Float64Dtype'
Describe the issue or bug I get an AttributeError: module 'pandas' has no attribute 'Float64Dtype' when trying to import pandas2ri. To Reproduce from rpy2.robjects import pandas2ri ... More on github.com
🌐 github.com
3
February 21, 2023
How to fix module ‘pandas’ has no attribute ‘dataframe’? - Python - Data Science Dojo Discussions
AttributeError: module ‘pandas’ has no attribute ‘dataframe’ I am getting this error while loading a csv file in Jupyter notebook. How can I resolve this issue, anyone? More on discuss.datasciencedojo.com
🌐 discuss.datasciencedojo.com
2
1
January 2, 2023
python - AttributeError: module 'pandas' has no attribute 'Panel' - Stack Overflow
I'm working on a Time Series project and want to use the statsmodels package. However I'm having trouble to import it. When I run this : import statsmodels.api as sm I get this error : AttributeErr... More on stackoverflow.com
🌐 stackoverflow.com
May 12, 2021
🌐
GitHub
github.com › brainiak › brainiak › issues › 515
GBRSA import error: Module 'pandas' has no attribute 'Panel' · Issue #515 · brainiak/brainiak
June 13, 2022 - I am attempting to follow the tutorial for GBRSA here: https://github.com/brainiak/brainiak/blob/master/examples/reprsimil/bayesian_rsa_example.ipynb but I receive an error that the module 'pandas' has no attribute 'Panel.' I've followed...
Author   salilabwfu
🌐
Data Science Learner
datasciencelearner.com › attributeerror-module-pandas-has-no-attribute-panel-solved
AttributeError: module 'pandas' has no attribute 'panel' ( Solved )
September 12, 2023 - Pandas is a python package that allows you to create dataframe and manipulate it using various functions. But sometime you may get errors like AttributeError. If you are getting the error module 'pandas' has no attribute 'panel' then this post is for you. In this tutorial, you will learn how to solve the issue of this attributeError in different methods.
🌐
GitHub
github.com › bexer › pyeviews › issues › 7
AttributeError: module 'pandas.core' has no attribute 'panel' · Issue #7 · bexer/pyeviews
August 31, 2021 - If you try to use a numpy array, list, dict as data in PutPythonAsWF(data, app=eviewsapp, newwf=False), we get an error in this elif statement: elif isinstance(obj, pa.core.panel.Panel): Remove line 211 to 224 in init.py fixes those erro...
Author   azacha
🌐
Scaler
scaler.com › home › topics › pandas › panel in pandas
Pandas Dataframe - Scaler Topics
December 15, 2022 - If we run the panel program on the pandas latest version, then it will throw an error like AttributeError: module 'pandas' has no attribute 'Panel' So, it's necessary to install the pandas version below 0.25 before running any Panel program.
🌐
Statology
statology.org › home › how to fix: module ‘pandas’ has no attribute ‘dataframe’
How to Fix: module 'pandas' has no attribute 'dataframe'
October 27, 2021 - import pandas as pd #create a list named 'pd' pd = [1, 2, 3, 4] #attempt to create DataFrame df = pd.dataframe({'points': [25, 12, 15, 14], 'assists': [5, 7, 13, 12]}) AttributeError: module 'pandas' has no attribute 'dataframe'
Find elsewhere
🌐
GitHub
github.com › rpy2 › rpy2 › issues › 998
AttributeError: module 'pandas' has no attribute 'Float64Dtype' · Issue #998 · rpy2/rpy2
February 21, 2023 - Cell In[2], line 1 from rpy2.robjects import pandas2ri File ~/.conda/envs/test_1/lib/python3.9/site-packages/rpy2/robjects/pandas2ri.py:152 pandas.Float64Dtype: functools.partial( File ~/.conda/envs/test_1/lib/python3.9/site-packages/pandas/__init__.py:258 in __getattr__ raise AttributeError(f"module 'pandas' has no attribute '{name}'") AttributeError: module 'pandas' has no attribute 'Float64Dtype'
Author   JohannesWiesner
🌐
Data Science Dojo
discuss.datasciencedojo.com › python
How to fix module ‘pandas’ has no attribute ‘dataframe’? - Python - Data Science Dojo Discussions
January 2, 2023 - AttributeError: module ‘pandas’ has no attribute ‘dataframe’ I am getting this error while loading a csv file in Jupyter notebook. How can I resolve this issue, anyone?
🌐
Stack Overflow
stackoverflow.com › questions › 67504515 › attributeerror-module-pandas-has-no-attribute-panel
python - AttributeError: module 'pandas' has no attribute 'Panel' - Stack Overflow
May 12, 2021 - I'm working on a Time Series project and want to use the statsmodels package. However I'm having trouble to import it. When I run this : import statsmodels.api as sm I get this error : AttributeErr...
🌐
Reddit
reddit.com › r/learnpython › attributeerror: module 'pandas' has no attribute 'read_excel'
r/learnpython on Reddit: AttributeError: module 'pandas' has no attribute 'read_excel'
December 7, 2023 -

Hi!

Since a few weeks I have been trying out Python.

Currently I am struggling with reading an Excel-file with Python.

I use PyCharm.

Below is the error i get when. Someone has experience with this?

Traceback (most recent call last):

File "C:\Users\myname\PycharmProjects\pythonProject11\oefenen.py", line 2, in <module>

df = pd.read_excel('test.xlsx')

AttributeError: module 'pandas' has no attribute 'read_excel'

Process finished with exit code 1

🌐
Reddit
reddit.com › r/learnpython › has the attribute "dataframe" been removed form pandas? - attributeerror: module 'pandas' has no attribute 'dataframe'
r/learnpython on Reddit: Has the attribute "DataFrame" been removed form pandas? - AttributeError: module 'pandas' has no attribute 'DataFrame'
April 1, 2019 -

The code:

import pandas as pd
import matplotlib.pyplot as plt
from matplotlib import style
style.use('ggplot')

web_stats = {'Day':[1,2,3,4,5,6],
             'Visitors':[43,53,34,45,64,34],
             'Bounce_Rate':[65,72,62,64,54,66]}

df = pd.DataFrame(web_stats)

print(df)

The error:

Traceback (most recent call last): File "C:/Users//OneDrive/Desktop/python/data analysis/pandas.py", line 1, in <module> import pandas as pd File "C:/Users//OneDrive/Desktop/python/data analysis\pandas.py", line 10, in <module> df = pd.DataFrame(web_stats) AttributeError: module 'pandas' has no attribute 'DataFrame'

I typed "DataFrame" correctly and even copy pasted the source code from the following website but it doesn't work: https://pythonprogramming.net/basics-data-analysis-python-pandas-tutorial/

I also ran "pip install pandas" on cmd and have python 3.7 installed.

🌐
Arab Psychology
scales.arabpsychology.com › psychological scales › how to fix: module ‘pandas’ has no attribute ‘dataframe’
How To Fix "module 'pandas' Has No Attribute 'dataframe'" ...
December 3, 2025 - Once the pandas module is up-to-date, you should be able to use the dataframe attribute without any further issues. ... The following examples show how to resolve this error in each of these scenarios. Suppose we attempt to create a pandas DataFrame using the following syntax: import pandas as pd #attempt to create DataFrame df = pd.dataframe({'points': [25, 12, 15, 14], 'assists': [5, 7, 13, 12]}) AttributeError: module 'pandas' has no attribute 'dataframe'
🌐
Reddit
reddit.com › r/learnpython › how to resolve the following error: attributeerror: module 'pandas' has no attribute 'read'
r/learnpython on Reddit: How to resolve the following error: Attributeerror: module 'pandas' has no attribute 'read'
August 18, 2021 -

I am trying to import a CSV file over to python but keep getting the following error. Any advice, I tried it on pycharm and juptyer notebook and get the same error. I am new to python

🌐
GitHub
github.com › pandas-dev › pandas › issues › 19155
AttributeError: module 'pandas' has no attribute 'Data' · Issue #19155 · pandas-dev/pandas
import pandas as pd dict={ "country":["Brasil", "Russia", "India", "China", "South Africa"], "capital":["Brasilia", "Moscow", "New Delhi", "Beijing", "Pretoria"], "area":[8.51, 17.10, 3.28, 9.59, 1.22], "population":[200.4, 143.5, 1252,1357,52.98] } ... AttributeError Traceback (most recent call last) in () ----> 1 brics = pd.Data.Frame(dict) #no success but works fine in the terminal · AttributeError: module 'pandas' has no attribute 'Data'
🌐
Bobby Hadz
bobbyhadz.com › blog › python-attributeerror-module-pandas-has-no-attribute-dataframe
AttributeError module 'pandas' has no attribute 'DataFrame' | bobbyhadz
... Copied!import pandas as pd d = {'a': 1, 'b': 2, 'c': 3} # ⛔️ AttributeError: partially initialized module 'pandas' has no attribute 'Series' (most likely due to a circular import) ser = pd.Series(data=d, index=['a', 'b', 'c']) print(ser)
🌐
GeeksforGeeks
geeksforgeeks.org › how-to-fix-module-pandas-has-no-attribute-dataframe
How to Fix: module ‘pandas’ has no attribute ‘dataframe’ - GeeksforGeeks
December 19, 2021 - The "Module 'Pandas' Has No Attribute 'read_csv' error typically occurs when the Pandas library is not imported correctly or when there's a namin ... In this article, we will discuss the different attributes of a dataframe.
🌐
GitHub
github.com › pydata › xarray › issues › 5430
pandas support when calling xarray.open_rasterio · Issue #5430 · pydata/xarray
June 2, 2021 - When calling xarray.open_rasterio: import xarray as xr xds = xr.open_rasterio("https://github.com/mapbox/rasterio/raw/1.2.1/tests/data/RGB.byte.tif") the following error occurs: AttributeError: module 'pandas' has no attribute 'Panel' I ...
Author   jmigueldelgado