Feed on

to convert a numpy array to a list, use the .tolist() method built into the array class:

my_list = my_array.tolist()

Bookmark and Share

if that was helpful ...

check out the other tips and tricks i've compiled on these pages. you might learn something else interesting!

Did I get this wrong? Let me know!

Trackback URI | Comments RSS