may I know why I will get IndexError when running the below code
IndexError
import tabula df = tabula.read_pdf("123.pdf", pages='all')[0]
IndexError: list index out of range
because the list that is returned to you is of course empty, which is like []
[]