numpy.hsplit()

numpy.hsplit

numpy.hsplit(ary, indices_or_sections) [source]

Split an array into multiple sub-arrays horizontally (column-wise).

Please refer to the split documentation. hsplit is equivalent to split with axis=1, the array is always split along the second axis regardless of the array dimension.