Pandas → T-SQL › sort_values
Pandas sort_values to ORDER BY
na_position is NULLS — SQL Server sorts NULL first on ASC. Call it out if the sheet did not.
SELECT * FROM Orders
ORDER BY status ASC, total_amount DESC;
sort_values does not change the table. ORDER BY does not either, unless you SELECT INTO.
Canonical translation
SELECT * FROM Orders
ORDER BY status ASC, total_amount DESC;
Then write it on a ticket
Monday is free. A colleague asks, you type, we mark it.
Clock in free