Python Forum
Cannot make 'pandas' module to work...
Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Cannot make 'pandas' module to work...
#1
Happy New Year to everyone!

I'm a total noob in python...
I was trying to import the Pandas module and I keep receiving the same error. I was googling that for a couple of hours but some solutions that I found were difficult for me to follow.
The error is the following:

Error:
Traceback (most recent call last): File "/home/ellie/Desktop/test.py", line 6, in <module> df_xlsx = pd.read_excel('x.xlsx') File "/home/ellie/.local/lib/python3.8/site-packages/pandas/util/_decorators.py", line 299, in wrapper return func(*args, **kwargs) File "/home/ellie/.local/lib/python3.8/site-packages/pandas/io/excel/_base.py", line 336, in read_excel io = ExcelFile(io, storage_options=storage_options, engine=engine) File "/home/ellie/.local/lib/python3.8/site-packages/pandas/io/excel/_base.py", line 1052, in __init__ xlrd_version = LooseVersion(xlrd.__version__) AttributeError: module 'xlrd' has no attribute '__version__'
As far as I know this error is not correlated to my script, it's something in pandas module right?


Does anyone know how to fix this?
I uninstalled and re-installed pandas multiple times.
I'm a Linux user, I don't know if it's related...

Thanks in advance!
nman52 likes this post
Reply


Messages In This Thread
Cannot make 'pandas' module to work... - by ellie145 - Jan-02-2021, 07:59 PM

Possibly Related Threads…
Thread Author Replies Views Last Post
  hi need help to make this code work correctly atulkul1985 5 851 Nov-20-2023, 04:38 PM
Last Post: deanhystad
  newbie question - can't make code work tronic72 2 732 Oct-22-2023, 09:08 PM
Last Post: tronic72
  can not import anaconda pandas module. PySpark pandas module is imported!! aupres 0 750 Aug-06-2023, 01:09 AM
Last Post: aupres
  Why do I have to repeat items in list slices in order to make this work? Pythonica 7 1,415 May-22-2023, 10:39 PM
Last Post: ICanIBB
  How do I get pygame module to work in Spyder? (Mac) FirstBornAlbratross 18 4,601 Dec-18-2022, 06:43 PM
Last Post: FirstBornAlbratross
  Pandas module not working Hass 2 1,774 Apr-14-2022, 03:13 PM
Last Post: snippsat
  Make my py script work only on 1 compter tomtom 14 3,976 Feb-20-2022, 06:19 PM
Last Post: DPaul
  For Loop Works Fine But Append For Pandas Doesn't Work knight2000 2 2,070 Dec-18-2021, 02:38 AM
Last Post: knight2000
  keyboard module doesn't work in the microsoft version terminal of python. username 1 2,864 Feb-25-2021, 05:19 PM
Last Post: Larz60+
  pandas.read_excel does not seem to work hobbyist 4 10,720 Feb-01-2021, 07:43 PM
Last Post: hobbyist

Forum Jump:

User Panel Messages

Announcements
Announcement #1 8/1/2020
Announcement #2 8/2/2020
Announcement #3 8/6/2020