Choose the Readings Without Losing Their Place

Botie may need one morning, a run of mornings, or selected greenhouses. We need to express each request precisely and know whether editing the selection will change the original report.

10 sections · 4 questions · 2 coding challenges

1 / 10

Working on Part of a Large Scientific Record

BOTIE

Scientific arrays can be too large to copy every time a calculation needs a subset. Regular stretches of storage can often be described by a starting position, a length, and a step.

NumPy distinguishes basic slicing, which can share storage, from advanced indexing, which gathers values into a new array. Those documented rules explain both the convenience of selection and the need for care when editing it.

Sources for this history