title: What is the difference between np.array() and np.asarray()?
body: <p>What is the difference between NumPy's <a href="https://numpy.org/doc/stable/reference/generated/numpy.array.html#numpy.array" rel="noreferrer"><code>np.array</code></a> and <a href="https://numpy.org/doc/stable/reference/generated/numpy.asarray.html#numpy.asarray" rel="noreferrer"><code>np.asarray</code></a>? When should I use one rather than the other? They seem to generate identical output.</p>