def datetime(x): """ Helper function to convert list of string objects to np.datetime64 objects. """ return np.array(x, dtype=np.datetime64)