Lists of NumPy arrays

Tags

  • py

Are, of course, a stack.

import numpy as np

xs = [
  np.array([1,2]),
  np.array([3,4])
]

xs_asnp = np.stack(xs)