简体   繁体   中英

3D list to Numpy array conversion not working, it gives me list object instead

So I want to convert this list:

[[[1,2]],[[1,2],[3,4]]]

to a numpy array.

However it gives me:

[list([[1,2]]),list([[1,2],[3,4]])]

The list is not rectangular, it wont work

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM