We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Can we delete row from existing table from pptx developed by Python-Pptx.
I want to delete last 7th row from table. Is there anyway to do it?
And if we have use below function could you please provide any example of code for the same.
def remove_row(table: Table, row_to_delete: _Row) -> None: table._tbl.remove(row_to_delete._tr)
OR
def remove_row(table, row): tbl = table._tbl tr = row._tr tbl.remove(tr)
row = table.rows[n] remove_row(table, row)
Thank you
Originally posted by @VaishnaviDaware in #192 (comment)
The text was updated successfully, but these errors were encountered:
No branches or pull requests
Can we delete row from existing table from pptx developed by Python-Pptx.
I want to delete last 7th row from table. Is there anyway to do it?
And if we have use below function could you please provide any example of code for the same.
def remove_row(table: Table,
row_to_delete: _Row) -> None:
table._tbl.remove(row_to_delete._tr)
OR
def remove_row(table, row):
tbl = table._tbl
tr = row._tr
tbl.remove(tr)
row = table.rows[n]
remove_row(table, row)
Thank you
Originally posted by @VaishnaviDaware in #192 (comment)
The text was updated successfully, but these errors were encountered: