ModularM
Modular3y ago
2 replies
roopesh puthalath

NumPy Stacking error ->error: failed to run the pass manager

from python import Python
from time import sleep
from python.object import PythonObject

fn main() raises:


let np = Python.import_module("numpy")
# Create two numpy arrays


var array1 = np.array([1, 2, 3])
var array2 = np.array([10, 20, 30])


var stackedarray = np.c[array1, array2]
#let stacked_array = np.column_stack((array1, array2))

print(stacked_array)
Was this page helpful?