Posted on:

21 Nov 2021

1

Had a query in numpy regarding joining arrays in numpy

<code>
data = np.array([[1 ,2 ,3] , [4 ,56], [6,7,8]])

data = np.array([data , data.tranpose()])
data = np.array([data, data.transpose()])
data.shape
                     </code>

Why is the data.shape output coming as (2,2) ? 

0 answers ( 0 marked as helpful)

Submit an answer