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
import xlwings as xw columns = xw.Book().sheets[0].tables["Table1"].columns columns.add("Tax", index=2) print(columns[1].name)