Forums

Python-docx displays tables incorrectly

Hello everyone. When i load the document into doc = Document () and output the table via the table attributes, 16 columns are displayed len (doc.tables [0] .columns), although in the word-file itself the number of columns in these tables is 5. Tell me how can i fix this? 192.168.l00.1 Thanks.

If you take a look at the columns, perhaps you could see what is inside them?

Also -- as this is a general question about using a Python library rather than something specific about PythonAnywhere, you might be able to get more answers if you post it on a general programming Q&A site like Stack Overflow.