Lecture 04- Xii -Data Farme
Lecture 04- Xii -Data Farme
Lecture- 04
Real-life Example:
Imagine your school club has a member list with names as row labels. You want to find the details of
a specific member, like “Alice,” by using her name instead of counting rows.
Real-life Example:
Your club list originally uses row numbers (0, 1, 2), but you decide to use each member’s “Name” as
the row label to make lookups easier, like finding “Cathy” directly.
Real-life Example:
You want to check the second member in your club list (Bob) by saying “give me row number 1”
(since numbering starts at 0).
Real-life Example:
You want to find club members who are 16 or older to assign them leadership roles. You filter the list
to show only those members.
• Setting Row Indexes: Use members’ names (like “Alice”) as row IDs for easier searches.
• Indexing by Integer Indexing: Grab the second member (Bob) by saying “row 1.”
• Setting Indexes: Give rows custom labels (use “Name” instead of 0, 1, 2).
• Boolean Indexing: Filter rows with conditions (like “age > 15”).