I have 2 np.array() as below. When I compare the two using "==", I get an output but with a deprecation warning. There is no warning when comparing 2 arrays with a same matrix.
What's the workaround to get still the same result but with no warning?
Thank you so much!
x = np.array([[0,1,2],[3,4,5]])
x
Out: array([[0, 1, 2],
[3, 4, 5]])
y = np.array([[6,7],[8,9],[10,11]])
y
Out: array([[ 6, 7],
[ 8, 9],
[10, 11]])
x == y
Out: False
**C:\ProgramData\Anaconda3\lib\site-packages\ipykernel_launcher.py:1: DeprecationWarning: elementwise comparison failed; this will raise an error in the future.
"""Entry point for launching an IPython kernel.**
Screenshot: