pandas.Series.tz_convert

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

将tz感知轴转换为目标时区。

参数:

tz:string或pytz.timezone对象

axis:要转换的轴

level:int,str,default无

如果轴ia为MultiIndex,转换特定级别。否则必须为无

copy:boolean,default True

还制作基础数据的副本

上升:

TypeError

如果轴是tz-naive。

Scroll To Top