TableColumns
- class TableColumns
Table columns. Collection lookup is zero-based; column indexes are one-based. For a newly created table in xlwings Lite, call
await book.flush()andawait sheet.load()before accessing its columns, then obtain the table again.Examples
# Assumes an existing workbook object named book. columns = book.sheets[0].tables["Table1"].columns columns.add("Tax", index=2) print(columns[1].name)