Files
developer-roadmap/roadmaps/python-data-analysis/content/indexing--slicing@PlFcaQsvFSK0Y-LKGu0eH.md
T
Arik Chakma 274082fd77 feat: clean roadmap content and sync scripts (#10181)
* refactor: clean to roadmap content

* refactor: move shared helpers into scripts/lib
2026-07-28 05:45:17 +06:00

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)