Make a datetime64 Series timezone-aware for the given tz
(series, tz)
| 1277 | |
| 1278 | |
| 1279 | def make_tz_aware(series, tz): |
| 1280 | """ |
| 1281 | Make a datetime64 Series timezone-aware for the given tz |
| 1282 | """ |
| 1283 | tz = pa.lib.string_to_tzinfo(tz, prefer_zoneinfo=_pandas_api.is_ge_v3()) |
| 1284 | series = (series.dt.tz_localize('utc') |
| 1285 | .dt.tz_convert(tz)) |
| 1286 | return series |
nothing calls this directly
no outgoing calls
no test coverage detected