<p>我现在有一个numpy多维数组(float类型)和一个numpy列数组(int类型)。我想把它们组合成多维的numpy数组。</p>
<pre><code>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
</code></pre>
<p>要显示数组的类型不同,请执行以下操作:</p>
<pre><code>>> type(dates[0])
<type 'numpy.int64'>
>> type(data[0,0])
<type 'numpy.float64'>
</code></pre>