What do head(), tail(), and sample() do for inspecting a DataFrame?
Role: Data Scientist
Category: Data Manipulation (SQL/Python)
Difficulty: easy
Interview Round: Other
Overview: Explain what the pandas head(), tail() and sample() methods return when inspecting a DataFrame and when each one is the right choice. Tests practical first-look habits with data, reproducible random sampling, and awareness of bias when rows are ordered.