I have multiple arrays without column or row names, and I would like to combine them using something like numpy.vstack() or numpy.hstack().
Column and row labels can be assigned can be done when creating a structured array, but hstack and vstack don't seem to have this functionality.
import numpy as np
a1 = np.array([1,2,3,4])
a2 = np.array([5,6,7,8])
a3 = np.vstack([a1,a2],dtype=[('RowName1','double'),('RowName2','double')])
yielding:
TypeError: vstack() got an unexpected keyword argument 'dtype'
Any suggestions?