I'm using Python 3.5 with the Anaconda distribution. tabula-py version 1.1.1 is installed. When I run the following simple program:
import tabula
df = tabula.read_pdf("sample.pdf", pages=1, encoding="ISO-8859-1")
df.columns = df.iloc[0]
df.drop(0, inplace=True)
I get the following error message:
AttributeError: module 'tabula' has no attribute 'read_pdf'
HOWEVER: If I open Spyder and first type "import tabula" in the IPython console before running the code, it runs just fine. If I restart the kernal, I get the same error until I close and reopen Spyder.
Any thoughts? Thanks in advance.