I wanted to add spaces between the elements of the PyQt table. Here is a line of code.
app. setStyleSheet ("QTableView::item { padding: 5px;}")