how to concatenate the following two matrix?
<p>Hello I have the following matrix called tfidf2, the shape of this matrix is 
(11159, 1985) it has 11159 rows and 1985 columns, I would like to concatenate a new matrix to this one, the matrix called datesNumpy that has a shape of (11159, 12), they have the same number of rows so is possible to concatenate it, the shape of the new matrix called tfidf3 should be (11159,1997), </p>

<pre><code>import numpy as np
tfidf2 = tdf.transform(list_cluster)
print("Shape tfidf2",tfidf2.shape)
listAux=[]
for l in listMonth:
        listAux.append([int(y) for y in l])
datesNumpy=np.array([np.array(xi) for xi in listAux])
print("Shape datesNumpy",datesNumpy.shape)
</code></pre>

<p>I tried:</p>

<pre><code>tfidf3=np.stack((tfidf2, datesNumpy), axis=-1)
</code></pre>

<p>However I got, I appreciate support to overcome this situation:</p>

<pre><code>Shape tfidf2 (11159, 1985)
Shape datesNumpy (11159, 12)
Traceback (most recent call last):
  File "Main.py", line 235, in &lt;module&gt;
    tfidf3=np.stack((tfidf2, datesNumpy), axis=-1)
  File "/usr/local/lib/python3.5/dist-packages/numpy/core/shape_base.py", line 339, in stack
    raise ValueError('all input arrays must have the same shape')
ValueError: all input arrays must have the same shape
</code></pre>

<p>After a feedback from here i tried:</p>

<pre><code>tfidf3=np.concatenate([tfidf2, datesNumpy], axis=1)
</code></pre>

<p>but I got:</p>

<pre><code>Traceback (most recent call last):
  File "Main.py", line 235, in &lt;module&gt;
    tfidf3=np.concatenate([tfidf2, datesNumpy], axis=1)
ValueError: zero-dimensional arrays cannot be concatenated
</code></pre>