I have 2 lists of numbers: a and b. A is a list of node numbers with type integer and b is a list of X coordinates with type float64. I want to combine these 2 equal length arrays (N) into an Nx2 array that preserves the data types. I am using this array later on in some boolean tests, so I need the first column to be integers. I've been using:
nodeID = np.concatenate([[a],[b]]).T
but obviously this converts everything into floating point numbers.
Thanks!