0

may I know why I will get IndexError when running the below code

import tabula
df = tabula.read_pdf("123.pdf", pages='all')[0]

IndexError: list index out of range

Marko E
  • 13,362
  • 2
  • 19
  • 28
Test777
  • 23
  • 4

1 Answers1

0

because the list that is returned to you is of course empty, which is like []

Fatemeh Sangin
  • 558
  • 1
  • 4
  • 19