def table(): table = document.add_table(rows=5, cols=7) table.style = 'Table Grid' table.cell(0,0).text = 'Period' table.cell(0,1).text = 'Time' table.cell(0,2).text = 'Monday'