convert gmt to local timezone in pandas

2019-08-10 15:31发布

问题:

I have a gmt timestamp and I need to convert it into a local timezone (taking into account daylight saving).

do you know how to do that in pandas? thanks!

回答1:

tz_localize is a possible candidate.

http://pandas.pydata.org/pandas-docs/version/0.17.1/generated/pandas.Series.tz_localize.html