pandas.DataFrame.tz_convert
- DataFrame.tz_convert(tz, axis=0, level=None, copy=True)[source]
-
Convert tz-aware axis to target time zone.
- Parameters
-
- tz:str or tzinfo object
- axis:the axis to convert
- level:int, str, default None
-
If axis is a MultiIndex, convert a specific level. Otherwise must be None.
- copy:bool, default True
-
Also make a copy of the underlying data.
- Returns
-
- {klass}
-
Object with time zone converted axis.
- Raises
-
- TypeError
-
If the axis is tz-naive.
© 2008–2021, AQR Capital Management, LLC, Lambda Foundry, Inc. and PyData Development Team
Licensed under the 3-clause BSD License.
https://pandas.pydata.org/pandas-docs/version/1.3.4/reference/api/pandas.DataFrame.tz_convert.html