QTableView overwrite selected index row data of all columns

I have a QTableView with a Pandas Data Frame Table Model,( 100 Rows) of float type data.
I am trying to update the selected row->which has 10 columns. It has zeros filled in to it at present.
How to proceed with this.I am getting the output list size as empty.
Select a Row Index on table. Iterate over each column for the complete row data.

rows = {index.row() for index in self.ui.tableView.selectionModel().selectedIndexes()}
output = []
for row in rows:
    row_data = []
    for column in range(self.ui.tableView.model().columnCount()):
        index = self.ui.tableView.model().index(row, column)