I am using xlwings 0.23.1 to work with MS excel 365.
but when I execute the following code:
import xlwings as xw
wb = xw.books.active
ws = wb.sheets('MySheet')
tbl = ws.api.ListObjects('MyTable') # or .ListObjects(1)
rng = ws.range(tbl.range.address) # get range from table address
df = rng.options(pd.DataFrame, header=True).value # load range to dataframe
the above code stucks at
rng = ws.range(tbl.range.address) # get range from table address
and does not exceute.
The code is taken from: Read Excel Table headers with xlwings
I am using Spyder IDE