Why the shape of any 1d array has an extra comma? Why (5,) instead of (5).
And why an extra comma is omitted for >= 2 arrays? Why it is (3,2) instead of (3,2,).
1D Example
data = array([11, 22, 33, 44, 55])
print(data.shape)
(5,) <======= EXTRA COMMA
2D Example
data = [[11, 22],
[33, 44],
[55, 66]]
data = array(data)
print(data.shape)
(3,2) <====