* refactor: clean to roadmap content * refactor: move shared helpers into scripts/lib
10 lines
766 B
Markdown
10 lines
766 B
Markdown
# Indexing & Slicing
|
|
|
|
Pandas provides two primary indexing systems: `.loc[]` for label-based selection and `.iloc[]` for position-based selection. Both work on rows, columns, or both simultaneously. Boolean indexing with a condition (e.g., `df[df['age'] > 30]`) is the most common way to filter rows.
|
|
|
|
Visit the following resources to learn more:
|
|
|
|
- [@official@pandas.DataFrame.loc](https://pandas.pydata.org/docs/reference/api/pandas.DataFrame.loc.html)
|
|
- [@official@pandas.DataFrame.iloc](https://pandas.pydata.org/docs/reference/api/pandas.DataFrame.iloc.html)
|
|
- [@article@Iloc vs Loc in Pandas: A Guide with Examples](https://www.analyticsvidhya.com/blog/2026/03/iloc-vs-loc-in-pandas/)
|
|
- [@video@Pandas loc and iloc](https://www.youtube.com/watch?v=naRQyRZrXCE) |