Using NumPy, I am trying to reshape data that looks like the following once loaded:
(0.00017299999308306724, 0.00020900000527035445, ... 0.9700180292129517)
It has 54 items and I'm trying to ultimately reshape it into a 27x2 array. It does load as an array but returns a shape of: () I have tested with NumPy doing the following:
test = np.arange(54)
print(test)
print(test.shape)
test = test.reshape(27,2)
That works as expected, giving an initial shape of (54,) and then a new shape of (27,2). The data mentioned above does not return a shape and I'm unable to reshape it.
The test data that does work looks like this when first initialized [0 1 2 3 ...53]
Why does the data format look so different (not the types but the [] with spaces vs () with , and how would one go about changing the format so the array may be reshaped?