impedimenta

Lists of NumPy arrays

Are, of course, a stack.

import numpy as np

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

xs_asnp = np.stack(xs)

See also:Joblib for memoization · GitHub actions 101 · Python servers and WSGI · Building Athens Research (Clojure/JS)