creating an empty NumPy array in Python - Printable Version +- Python Forum (https://python-forum.io) +-- Forum: Python Coding (https://python-forum.io/forum-7.html) +--- Forum: Data Science (https://python-forum.io/forum-44.html) +--- Thread: creating an empty NumPy array in Python (/thread-15370.html) |
creating an empty NumPy array in Python - sandeepatel - Jan-15-2019 Explain different ways to create an empty NumPy array in Python. RE: creating an empty NumPy array in Python - Larz60+ - Jan-15-2019 sounds like a homework question. I refer you to numpy documentation: https://docs.scipy.org/doc/ RE: creating an empty NumPy array in Python - rinu - Jan-16-2019 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)) |