pandas.Series.tz_convert

Series.tz_convert(self, tz, axis=0, level=None, copy=True)[source]

Convert tz-aware axis to target time zone.

Parameters
tzstring or pytz.timezone object
axisthe axis to convert
levelint, str, default None

If axis ia a MultiIndex, convert a specific level. Otherwise must be None

copyboolean, default True

Also make a copy of the underlying data

Returns
%(klass)s

Object with time zone converted axis.

Raises
****TypeError

If the axis is tz-naive.

Scroll To Top