Endpoint and retstep explain

Course Name: Python for Trading: Basic, Section No: 7, Unit No: 4, Unit type: Notebook

In line 15, not able to understand the role played by retstep keyword; when set as true for both endpoint and retstep the output comes as "array([ .....  ]), additional element"; 

please explain. 

Hi Jeyaraman



The additional element is simply the spacing between the elements of the array.







In the image above, where retstep is True, 1.0 (additional element) is the space between the two consecutive numbers in the array.



Hope this helps.