Extract first and last row of a DataFrame in Pandas

Extract first and last row of a DataFrame in Pandas

More to explore

Based on this image's title: “Extract first and last row of a DataFrame in Pandas