W R - 9 months ago 58

Python Question

I would like to check if the array

`b`

`a`

`b`

`a`

Here is the code I have:

`import numpy as np`

a = np.array([[1,7,9],[8,3,12],[101,-74,0.5]])

b = np.array([[1,9],[8,12],[101,0.5]])

print a

print b

Here is the output

Array a

`[[ 1. 7. 9. ]`

[ 8. 3. 12. ]

[ 101. -74. 0.5]]

Array b

`[[ 1. 9. ]`

[ 8. 12. ]

[ 101. 0.5]]

Is there a way to check if b is a subset of a?