Numpy Array Simple

import numpy as np
x = np.array([0, 1, 2, 3, 4, 5, 6, 7, 8, 9])
print(x)
[0 1 2 3 4 5 6 7 8 9]
x = x[1:7:5]
x
array([6])
x = np.array([
            [
                [1],[2],[3]
            ], 
            [
                [4],[5],[6]
            ]
        ])
x
array([[[1],
        [2],
        [3]],

       [[4],
        [5],
        [6]]])
x.shape
(2, 3, 1)
x.transpose()
array([[[1, 4],
        [2, 5],
        [3, 6]]])
x.shape
(2, 3, 1)
x.transpose()
array([[[1, 4],
        [2, 5],
        [3, 6]]])
x.shape
(2, 3, 1)
y = np.array([1, 4, 5], ndmin = 2)
y
array([[1, 4, 5]])
y.shape
(1, 3)
y.transpose()
array([[1],
       [4],
       [5]])
y.shape
(1, 3)
a = np.array([12, 2], dtype = complex)
a
array([12.+0.j,  2.+0.j])
a.shape
(2,)
a = np.array([12, 2], dtype = complex, ndmin=2)
a
array([[12.+0.j,  2.+0.j]])
a.shape
(1, 2)