This lesson shows how to preview data in pandas using head() and tail(). We start with a DataFrame of 5 rows and 2 columns. Calling head(3) returns the first 3 rows, which are rows with index 0, 1, and 2. Calling tail(2) returns the last 2 rows, with index 3 and 4. These functions help us quickly see parts of the data without printing everything. If the number requested is larger than the DataFrame size, all rows are returned safely. Remember, pandas uses zero-based indexing for rows. This visual trace helps understand how head() and tail() work step-by-step.