python - Error with xlrd and open_woorkbook -


i´m starting programming python , keep receiving same error in program:

import xlrd import numpy np import matplotlib plt  file_location = " x:\ \blabla.xlsx"  import workbook wb=xlrd.open_workbook(filename= 'blabla.xlsx') 

traceback (most recent call last):

file "", line 1, in

attributeerror: module 'xlrd' has no attribute 'open_workbook'

the paths written , don´t have more 1 xlrd module, looked trough function:

help(xlrd) 

help on package xlrd:

name xlrd

package contents file (built-in)

attributeerror: module 'xlrd' has no attribute 'open_workbook'

it means open_workbook not recognized method (i. e. function) - wanted - attribute (i. e. variable).

methods have opening parenthesis ( after them while attributes don't.

so bad - real code different code in question, because in question have ( after name open_workbook.


Comments

Popular posts from this blog

javascript - Clear button on addentry page doesn't work -

c# - Selenium Authentication Popup preventing driver close or quit -

tensorflow when input_data MNIST_data , zlib.error: Error -3 while decompressing: invalid block type -