Currently, I have a multidimensional multidimensional array (of type float) and an array of numpy columns (of type int). I want to combine these two into a multidimensional numpy matrix.
import numpy >> dates.shape (1251,) >> data.shape (1251,10) >> test = numpy.hstack((dates, data)) ValueError: all the input arrays must have same number of dimensions
To show that array types are different:
>> type(dates[0]) <type 'numpy.int64'> >> type(data[0,0]) <type 'numpy.float64'>
source share