MediumAbout 9 minDatetime handling
Days between order and ship timestamps
An orders DataFrame has order_ts and ship_ts as ISO date strings. Compute the whole number of days between them (ship_ts - order_ts) per row.
Return a Python list of integer day counts, in row order.
What the tests check
2 on Run · 3 on Submit01computes the day gap
02same day is zero
Submit runs these and one more check you don’t see, so code written for the visible tests alone can still miss.
Runtime
Python 3.13 in your browser – the standard library plus pandas and numpy; no pip installs.