Learn Before
Concept

Index Tricks

np.transpose(b) #Permute array dimensions a.k.a transpose b.flatten() #Flatten the array np.hstack((b,c)) #Stack arrays horizontally (column-wise) np.vstack((a,b)) #Stack arrays vertically (row-wise) np.hsplit(c,2) #Split the array horizontally at the 2nd index np.vpslit(d,2) #Split the array vertically at the 2nd index

0

1

Updated 2021-06-21

Tags

Python Programming Language

Data Science