Concatenating two string columns of numpy array into single column in python
<p>I have a numpy array as following :</p>

<pre><code>2016-07-02  10:55:01
2016-07-02  10:55:01
2016-07-02  10:55:01
2016-07-02  17:01:34
2016-07-02  17:01:34
2016-07-02  16:59:52
2016-07-02  17:01:34
2016-07-02  16:59:52
2016-07-02  16:59:52
2016-07-02  10:40:00
2016-07-02  12:01:14
</code></pre>

<p>this are two columns of array. date and time. but i want both into a single column concatenated by '\t'. both the values are in string  format. </p>

<p>I did it by a loop as follows, but that is a bad idea and taking much time. : </p>

<pre><code>for D in Data:
    Data2 = np.append(Data2,np.array(D[0]+"\t"+D[1]))
</code></pre>

<p>Please suggest an efficient solution. </p>

<pre><code>import numpy as np
a=[[1],[2],[3]]
b=[[4],[5],[6]]

np.concatenate((a,b),axis=1)
</code></pre>

python arrays numpy