#indexing
- 7 Mar 2024 · Study
Pandas · Selection with loc and iloc
Label-based loc versus position-based iloc, boolean filtering, query(), and avoiding chained assignment.
- 12 Feb 2024 · Study
NumPy · Boolean and fancy indexing
Selecting with boolean masks and integer arrays, combining conditions with & and |, np.where, and why these return copies.
- 8 Feb 2024 · Study
NumPy · Indexing and slicing
Multi-dimensional indexing with a[i, j], slicing rows and columns, and the most important rule: basic slices are views, not copies.