Pandas → T-SQL › head
Pandas head to TOP
head(5) in a notebook is whatever order the frame happened to have. SQL will invent one if you do not.
SELECT TOP 5 * FROM Orders ORDER BY order_date DESC;
head after a sort is TOP after ORDER BY. Write both.
Canonical translation
SELECT TOP 5 * FROM Orders ORDER BY order_date DESC;
Then write it on a ticket
Monday is free. A colleague asks, you type, we mark it.
Clock in free