Skip to content

How to create an array in Python?

itemlist = []
for j in range(len(myarray)):
    item = myarray[j]
    itemlist.append(item)
See also  Python code snippet - How to convert data type of a column in pandas?

Leave a Reply

Your email address will not be published. Required fields are marked *

This site uses Akismet to reduce spam. Learn how your comment data is processed.