6.3. cpforager.utils.convert_utc_to_loc
- cpforager.utils.convert_utc_to_loc(df, local_timezone)
Convert
datetimefrom UTC to the local timezone.- Parameters:
df (pandas.DataFrame) – dataframe with a
datetimecolumn at the UTC timezone.local_timezone (str) – local timezone following the pytz nomenclature (see
pytz.all_timezones).
- Returns:
the dataframe with a
datetimecolumn converted the local timezone.- Return type:
pandas.DataFrame