On 8 July 2017 at 13:03, Jaime Fernández del Río
wrote:
> The last index is exclusive:
> [a:b] means a <= index < b.
>
And the consequence is that the length of your array is b - a, so [:3]
gives you the first 3 values.
___
The last index is exclusive:
[a:b] means a <= index < b.
On Jul 8, 2017 10:20 AM, wrote:
> Hi
>
> Once again I need your help to understand one topic concerning slicing
> topic, or in other word I do not understand how it works in that particular
> (but common) case; I’m
On Fri, Jul 7, 2017 at 6:42 PM, Ryan May wrote:
> On Fri, Jul 7, 2017 at 4:27 PM, Marten van Kerkwijk <
> m.h.vankerkw...@gmail.com> wrote:
>
>> Hi All,
>>
>> I doubt I'm really the last one thinking ndarray subclassing is a good
>> idea, but as that was stated, I feel I should
Hi
Once again I need your help to understand one topic concerning slicing
topic, or in other word I do not understand how it works in that
particular (but common) case; I'm trying to reassign the 4 first values
in an array:
* If I use [:3] I'm expecting to have 4 values (index 0 to 3