You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
[Question] How to conver to numpy and from numpy #39
Activity
villekf commentedon Feb 23, 2026
I don't think there's a direct way to do this, but you can obtain a Python list from an array and then convert that to NumPy array:
B = np.asarray(A.to_list())EDIT: You can do the same the other way around as well: convert the NumPy array to list and then create an array.