Skip to content
Advertisement

How to write a xls table to docx using Jupyter python

Hello I am new users of Jupyter python and I have a question:

I have data in xls sheet and I want to write some of the columns in words docx by using python.

I have 12 columns and I want only 3 in docx file.

Advertisement

Answer

In Windows, name the range of the 3 columns you’re trying to copy in Excel. You can then paste it in your Word document using the following bit:

JavaScript

It will keep the formatting from the workbook.

User contributions licensed under: CC BY-SA
4 People found this is helpful
Advertisement