- arr.count() to count the no of occurrences
.join(map(str,row)whererowisrow in matrix{tuple(row) for row in matrix}gives a unique set of rows
.join(map(str,row) where row is row in matrix{tuple(row) for row in matrix} gives a unique set of rows