How do I create an empty array and then append to it in NumPy?

I want to create an empty array and append items to it, one at a time.

xs = []
for item in data:
    xs.append(item)

Can I use this list-style notation with NumPy arrays?

← Назад к списку