(Jun-19-2022, 07:20 PM)deanhystad Wrote: reshape is a function, not a method of nparray. The call is "new_array = numpy.reshape(arr, (10, -1))".
Hi, thanks for your explanation. I have tried this but no results.
import pandas as pd import numpy as np df = pd.read_excel('sample.xlsx') myCol = pd.DataFrame(df.iloc[:,0]) arr = np.array (myCol) newArr = np.reshape(arr, (10, -1), order='F') np.savetxt("newMatrix.csv", newArr, delimiter=",")