in Python by
Q:
What Are Different Ways To Create An Empty NumPy Array In Python?

▼ Show 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))

Python
Learn More with Madanswer

Related questions

0 votes
asked Feb 6, 2020 in JavaScript by rajeshsharma
...