QTableWidget Clear Python

self.table.setRowCount(0)
arne314