i am not able to reshape the dimensions of the this array:
Shape of array:
(1, 81539)
Array:
[[ 906.78302002 10.00976562 23.4375 ... 4594.27587891
49.99263 41.85557556]]
i am using
reshape(-1,36)
So there should be 36 columns and the needed amount of rows to store all the data from the array.
Sidenote: i am new to python
import pandas as pd
import numpy as np
trainData_temp = pd.read_csv('data/trainData.csv', sep=';')
numArray = np.array(trainData_temp.values).transpose()
print('Shape of array:')
print(numArray.shape)
print('Array:')
print(numArray)
numArray.reshape(-1, 36)
print(numArray)
Results:
Traceback (most recent call last):
Shape of array:
(1, 81539)
Array:
[[ 906.78302002 10.00976562 23.4375 ... 4594.27587891
49.99263 41.85557556]]
File "C:/Users/Timo/PycharmProjects/aimlHamelnProj2/csvModify.py", line 18,
in <module>
numArray.reshape(-1, 36)
ValueError: cannot reshape array of size 81539 into shape (36)