import numpy as np
regimentSize = [534, 5468, 6546, 542, 9856, 4125]
regimentSizeArray = np.array(regimentSize); regimentSizeArray
array([ 534, 5468, 6546, 542, 9856, 4125])
regimentSizeArray.ndim
1
regimentSizeArray.shape
(6,)
regimentSizePreWar = [534, 5468, 6546, 542, 9856, 4125]
regimentSizePostWar = [234, 255, 267, 732, 235, 723]
regimentSizePrePostArray = np.array([regimentSizePreWar, regimentSizePostWar]); regimentSizePrePostArray
array([[ 534, 5468, 6546, 542, 9856, 4125], [ 234, 255, 267, 732, 235, 723]])
regimentSizePrePostArray.ndim
2
regimentSizePrePostArray.shape
(2, 6)