Important Notice:

Course Content
NumPy Basic in Python (Chapter-13) M3-R5
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)

error: Content is protected !!