3

my code is ''' DumpDF=pd.read_excel(Report,encoding='cp1252') ''

Error: Traceback (most recent call last): File "model1_final.py", line 132, in File "C:\Users\AppData\Local\Programs\Python\Python39\lib\site-packages\pandas\util_decorators.py", line 299, in wrapper return func(*args, **kwargs) TypeError: read_excel() got an unexpected keyword argument 'encoding' 127.0.0.1 - - [13/Feb/2021 09:16:40] "[37mPOST /predict HTTP/1.1[0m" 200 -

Tried replacing encoding with encoding_override, still got same TypeError Traceback (most recent call last): File "model1_final.py", line 132, in File "C:\Users\AppData\Local\Programs\Python\Python39\lib\site-packages\pandas\util_decorators.py", line 299, in wrapper return func(*args, **kwargs) TypeError: read_excel() got an unexpected keyword argument 'encoding_override' 127.0.0.1 - - [13/Feb/2021 09:16:40] "[37mPOST /predict HTTP/1.1[0m" 200 -

1
  • why are you using encoding='cp1252'? Commented Feb 13, 2021 at 17:54

1 Answer 1

6

As you can see here pandas.read_excel does not take/need a (keyword) argument called 'encoding'.

Sign up to request clarification or add additional context in comments.

Comments

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.