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)
2 Replies
Tensorflowters
Tensorflowters15mo ago
Did you import numpy as a Python module in your project ? Did you have set MOJO_PYTHON_LIBRARY ?
roopesh puthalath
roopesh puthalathOP15mo ago
@Tensorflowters many other numpy methods works flawless for me. i am facing issues with column stack
Want results from more Discord servers?
Add your server