listMerge

utils.listMerge(*args)[source]

For merging lists with objects that are not solely numbers

Parameters:args (list of lists) – A list of 1D lists of objects
Returns:combinations – An np.array with len(args) columns and a row for each combination
Return type:np.array

Examples

>>> listMerge([1, 2, 3], [5, 6, 7]).T
array([[1, 2, 3, 1, 2, 3, 1, 2, 3],
       [5, 5, 5, 6, 6, 6, 7, 7, 7]])