0 votes
in Python by
What Are Different Ways To Create An Empty NumPy Array In Python?

1 Answer

0 votes
by

There are two methods which we can apply to create empty NumPy arrays.

The First Method To Create An Empty Array.

import numpy

numpy.array([])

The Second Method To Create An Empty Array.

# Make an empty NumPy array

numpy.empty(shape=(0,0))

Related questions

0 votes
asked Jan 17, 2021 in Python by SakshiSharma
0 votes
asked Dec 22, 2019 in Python by rajeshsharma
...