I'm using the python-docx
library to extract ms word document. I'm able to get all the tables from the word document by using the same library. However, I'd like to parse the table into a panda data frame, is there any built-in functionality I can use to parse the table into data frame or I'll have to do it manually?
Also, is there a possibility to know the heading name in which the table lies inside? Thank you
from docx import Document
from docx.shared import Inches
document = Document('test.docx')
tabs = document.tables