Robots Atlas>ROBOTS ATLAS

Python — From Basics to Advanced · NumPy — the foundation of numerical computing

Indexing and Slicing — Fancy, Boolean, Mixed

NumPy — the foundation of numerical computing

Introduction

NumPy slicing returns views — modifying them changes the original. Fancy indexing (lists/arrays of indices) and boolean indexing create copies. This difference is a common source of bugs.