Why does np.linspace(1,5,5, dtype = int, endpoint=False) result in an array that contains 1 twice?
<p>While looking to replicate:</p>

<pre><code>In [61]: np.arange(0,5)
Out[61]: array([0, 1, 2, 3, 4])
</code></pre>

<p>using <code>np.linspace()</code>, I observed:</p>

<pre><code>In [70]: np.linspace(1,5,5, dtype = int, endpoint=False)
Out[70]: array([1, 1, 2, 3, 4])
</code></pre>

<p>Why does <code>np.linspace()</code> include the value <strong>1</strong> twice in this case?</p>