def recarray_fromrecords(rec_list):
 nfields = len(rec_list[0])
 obj = np.array(rec_list, dtype=object)
 array_list = [np.array(obj[..., i].tolist()) for i in range(nfields)]
 formats = []
 for obj in array_list:
  formats.append(obj.dtype.str)
 formats = u','.join(formats)
 return np.rec.fromarrays(array_list, formats=formats)

def recarray_fromrecords ( rec_list ) : nfields = len ( rec_list [ 0 ] ) obj = np . array ( rec_list , dtype = object ) array_list = [ np . array ( obj [ ... , i ] . tolist ( ) ) for i in range ( nfields ) ] formats = [ ] for obj in array_list : formats . append ( obj . dtype . str ) formats = u',' . join ( formats ) return np . rec . fromarrays ( array_list , formats = formats )
partial replacement for ~numpy .