How to reshape in NumPy

How to reshape in NumPy

You can reshape the NumPy array with the following code. If you want to learn Python, I highly recommend reading This Book. Output [[1 2 3] [4 5 6]] (2, 3) [[1 2] [3 4] [5 6]] [[1 2 3 4 5 6]] [[1] [2] [3] [4] [5] [6]]