SpinTheMic
Pro

Interview practice question

Converting timestamps between time zones

Data Analyst · Python and Pandas · Intermediate

Event timestamps are stored in UTC, but the business reports in local time across several countries. How do you handle this in pandas?

What a strong answer covers

Your AI report card counts how many of these ideas you cover.

  • tz_localize("UTC") if naive.
  • tz_convert per country time zone.
  • Map country → zone; convert per group.
  • Then extract local date.
  • DST handled automatically.
Practise this topic

Start without signing up. Sign in free to get an AI report card on your answer.

See all topics