How to combine two datetime arrays in one datetime array?
<p>I have two arrays with datetime objects, but I need only one combined array with date of the first and time of the second..
If I use </p>

<blockquote>
  <p><code>datetime.combine(date,time)</code></p>
</blockquote>

<p>the result is</p>

<blockquote>
  <p>TypeError: combine() argument 1 must be datetime.date, not
  numpy.ndarray</p>
</blockquote>

<p>the code is:</p>

<pre><code>import numpy as np 
import matplotlib.pyplot as pp
import math
from datetime import datetime, time, date
from glob import glob
import pylab as plb
from scipy.optimize import curve_fit
from scipy import asarray as ar,exp
#importo i nomi dei files

fnames=glob('C:/Users/asus/Desktop/lab_astro/GALASSIA/galassia canale 43/*')
#conto i files per ogni tipo e inizializzo le variabili dove mettere i dati
num_file14=len(fnames)
signal14=[]
dt = datetime
dd = datetime


#leggo i files e riempio le variabiliChange working directory..
for n in range (0, num_file14):
    data14=np.loadtxt(fnames[n], comments ='END', delimiter=';', skiprows=1, usecols=(0,1,7),dtype=object,converters={ 0: lambda x: dd.strptime(x, "%d/%m/%Y"),1: lambda x: dt.strptime(x, "%H.%M.%S") , 7: np.float}) 
    dd=np.append(orario,data14[:,0])
    dt=np.append(orario,data14[:,1])
    d = datetime.combine(dd,dt)
    signal14=np.append(signal14,data14[:,2])
</code></pre>

<p>maby my question is naive, I'm new in Python, but I really need this program to work...thanks for your help!!</p>