Skip to content

Glossary: pandas Beyond the Basics

tz_convert

Also written: tz_localize, .dt.tz_convert()

`tz_convert` changes a time-zone-aware time to another zone without changing the moment. `tz_localize` tells pandas which zone naive times are in, or with `None` removes the zone.

Where the book teaches it

Related terms

Time zone awareNaive timeUTC