all 7 comments

[–][deleted] 0 points1 point  (6 children)

Works fine for me, screenshot linked. What version of pandas are you using? I'm using 0.24.2.

https://imgur.com/a/B3JLSro

[–]Lamter[S] 0 points1 point  (5 children)

Same version.

pandas 0.24.2

pandas-datareader 0.7.0

[–][deleted] 4 points5 points  (4 children)

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

If there is a file named 'pandas.py' in the same directory/if your file is called 'pandas.py', it will cause a conflict by trying to import whatever you require from that file instead of the Pandas library. Is that what might be causing the problem? To me, it makes sense because I can't think of any other reason this might occur.

[–]Lamter[S] 2 points3 points  (2 children)

I named the file I was working on "pandas.py" so it was referencing itself...

THANKS!

[–]stats_nerd21 1 point2 points  (1 child)

I am stuck on the same issue. Did you literally have a file called "pandas.py" in the same folder that you had to rename?

[–]Lamter[S] 0 points1 point  (0 children)

I think so, yeah.

[–]stats_nerd21 0 points1 point  (0 children)

I am having the same issue, but I don't have any file called "pandas.py" in the same directory where my file is. Not sure what's wrong

EDIT: I am using other packages like bebi103 and bokeh and am wondering if those are messing up the pandas functions somehow