Drills tagged with this skill, unpassed first. Pass them all to mark the skill ready for scenarios.
get_scores(df) that returns the score column as a pandas Series (not a single-column DataFrame).
Example. A df with name and score → the score Series.
Notes. df["score"] returns a Series; df[["score"]] (double-bracket) would return a DataFrame — we want the first. Empty df → empty Series.rows_by_position(df, start, stop) that returns rows from position start (inclusive) to stop (exclusive), using positional indexing.
Example. A 5-row df with start=1, stop=3 → rows at positions 1 and 2.
Notes. Same semantics as Python list slicing. start == stop → empty DataFrame. stop > len(df) → returns through end.rows_where_score_ge(df, threshold) that returns the rows of df where score >= threshold. Preserve original row order.
Example. scores [90, 75, 85, 60], threshold=80 → rows with scores 90 and 85.
Notes. Threshold higher than every score → empty DataFrame. Threshold lower than every score → all rows.