Skip to content

feature: del table.rows[i] #279

@Abolfazl

Description

@Abolfazl

Is it possible to remove a certain row?

Here is the code I have:

doc = Document('File.docx')
for table in doc.tables:
    for row in table.rows:
        if "TEXT" in row.cells[1].text:
            print(row.cells[1].text)
            # REMOVE THIS ROW

There is an add_row() function but there isn't a remove row. How would I go about removing this row?

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions