About Lesson
Shuffle Function:-
import numpy as np a=np.array([10,20,30,40,20,50,30,40]) print(a) np.random.shuffle(a) print(a) |
Unique Function:-
import numpy as np a=np.array([10,20,30,40,20,50,30,40]) print(a) print(np.unique(a)) |
Unique size function:-
import numpy as np a=np.array([10,20,30,40,20,50,30,40]) print(a) print(np.unique(a)) print(np.unique(a).size) |