I have read tables from pdf using tabula-py command with the following code:
table = tabula.read_pdf(files[0],pages = \'all\',multiple_tables = True, stream = True