How can we create an empty NumPy array?
Hello Tom-dale,
In Python, there are two ways to create an empty NumPy array:
import numpy
# Method 1
array_1 = numpy.array([])
print(array_1)
# Method 2
array_2 = numpy.empty(shape=(3, 3))
print(array_2)