👋 Hello! I'm Alphonsio the robot. Ask me a question, I'll try to answer.

# In Python, how to create an empty NumPy array?

There are several ways to create an **empty NumPy array in Python**. In the following we'll assume NumPy is imported according to the following:

`import numpy as np`

__Create an empty Numpy array:__

```
>>> a = np.array([])
array([], dtype=float64)
```

__Create a NumPy array filled with zero of a given size:__

```
>>> a = np.zeros([4,3])
array([[0., 0., 0.],
[0., 0., 0.],
[0., 0., 0.],
[0., 0., 0.]])
```

__Create an uninitialized NumPy array with a given size:__

```
>>> a = np.empty([2,2])
array([[5.e-324, 5.e-324],
[5.e-324, 0.e+000]])
```