Write a function to print the count of unique values, minimum and maximum in each row given a random Numpy matrix of size (m,n). code example
Example: Write a function to print the count of unique values, minimum and maximum in each row given a random Numpy matrix of size (m,n).
import numpy as np
a = np.array([[1, 3, 3], [4, 5, 4], [7, 7, 9], [3, 3, 5]])
for x in range(len(a)):
print('Unique: ' + str(len(list(set(a[x])))) + ' Max: ' + str(max(a[x])) + ' Min: ' + str(min(a[x])))