My purpose is to combine multiple 2d list in order such as:
a = [[1,2],[3,1]]
b= [[3,6],[2,9]]
c = [[5,1],[8,10]]
Expected: [[1,2,3,6,5,1],[3,1,2,9,8,10]]
>
This might be another solution using numpy but this is much slower.
import numpy as np
a = [[1,2],[3,1]]
b = [[3,6],[2,9]]
c = [[5,1],[8,10]]
print np.hstack((np.hstack((a,b)),c))
# [[ 1 2 3 6 5 1]
# [ 3 1 2 9 8 10]]
and if you want it to have a list format then use
np.hstack((np.hstack((a,b)),c)).tolist()