Python Forum
Python Forum
>
Python Coding
>
Data Science
> creating an empty NumPy array in Python
Full Version:
creating an empty NumPy array in Python
You're currently viewing a stripped down version of our content.
View the full version
with proper formatting.
sandeepatel
Jan-15-2019, 06:56 AM
Explain different ways to create an empty NumPy array in Python.
Larz60+
Jan-15-2019, 12:32 PM
sounds like a homework question.
I refer you to numpy documentation:
https://docs.scipy.org/doc/
rinu
Jan-16-2019, 09:24 AM
We’ll talk about two methods to create NumPy array-
First method-
>>> import numpy >>> numpy.array([]) array([], dtype=float64)
Second method-
>>> numpy.empty(shape=(0,0))
Python Forum
>
Python Coding
>
Data Science
> creating an empty NumPy array in Python