Table Of Contents

Search

Enter search terms or a module, class or function name.

pandas.Panel.tz_convert

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

Convert tz-aware axis to target time zone.

Parameters:
tz : string or pytz.timezone object
axis : the axis to convert
level : int, str, default None

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

copy : boolean, default True

Also make a copy of the underlying data

Raises:
TypeError

If the axis is tz-naive.

Scroll To Top