Writing a pandas dataframe to a word document table via pywin32
问题 I am currently working on a script that needs to write to a .docx file for presentation purposes. I use pandas to handle all my data calculations in the script. I am looking to write a pandas dataframe into a table at a bookmark in a word.docx file using PyWIN32. The dataframe consists of floats. The psuedo code is something like this. frame = DataFrame(np.arange(28).reshape((4,7)), columns=['Text1',...'Text7']) With pywin32 imported... wordApp = win32.gencache.EnsureDispatch('Word