Requirement: You first need to install openpyxl for this script to work: pip install openpyxl

import tabula

table = tabula.read_pdf('Table and Text.pdf', pages=1)
table[0].to_excel('output.xlsx', index=None)