scanny / python-pptx

Create Open XML PowerPoint documents in Python
MIT License
2.35k stars 510 forks source link

`_RowCollection` has no method `add` #832

Open PaleNeutron opened 2 years ago

PaleNeutron commented 2 years ago

This method does not exist but documented : https://python-pptx.readthedocs.io/en/latest/dev/analysis/tbl-table.html#rowcollection-class

PaleNeutron commented 2 years ago

And I found a really old pr which could be very helpful

https://github.com/scanny/python-pptx/pull/399

jeromeof commented 1 year ago

Would love this fixed also - Strange that its is in the documentation but not in the code

mizsakpeti commented 1 year ago

It is only in the "Anlysis" part of the documentation (as a feature to implement in the future), not in the API part: https://python-pptx.readthedocs.io/en/latest/api/table.html?highlight=table#pptx.table.Table

But based on the linked PR I think you can write your own function to add a row to a table.