Python - module 'pandas' has no attribute 'DataFrame ...
openwritings.net › pg › pythonFeb 19, 2020 · df=pd.DataFrame () AttributeError: module 'pandas' has no attribute 'DataFrame' This drove me crazy. The code that I wrote was perfectly correct. Solution It turns out. I put my code in pandas.py and run it from that file. It messed up the import, resulting in this error. Avoid calling your script pandas.py or pd.py Python, Pandas About the author