pyexcel.Sheet.vertical

Sheet.vertical()

Default iterator to go through each cell one by one from leftmost column to rightmost row and from top to bottom example:

import pyexcel as pe
data = [
    [1, 2, 3, 4],
    [5, 6, 7, 8],
    [9, 10, 11, 12]
]
m = pe.Matrix(data)
print(list(m.vertical()))

output:

[1, 5, 9, 2, 6, 10, 3, 7, 11, 4, 8, 12]

More details see VTLBRIterator