Explain different ways to create an empty NumPy array in Python.

There are two ways an empty NumPy array can be created: numpy.zeros and numpy.empty.
import numpy as np

print(np.empty((4,4)))
print("\n")

print(np.zeros((4,4)))

Comments

Popular posts from this blog

Python Tokens

Pie Chart , Donut Plot, Area plot