I have a dataframe that includes a US Zip Code and a datetimeoffset field that is UTC time. I want to add a column to the dataframe that shows the local time based on the Zip. It looks like pyzipcode might have what I need but I can't figure out how to code it. Here is an example of the dataframe I have:
import pandas as pd
from pyzipcode import ZipCodeDatabase
zcdb = ZipCodeDatabase()
data = [{'Zip':78745, 'DateTimeOffsetUTC':'7/8/2020 5:17:48 PM +00:00'}]
df = pd.DataFrame(data)
df["LocalDatetime"] = ???
Thanks in advance! I think this might be a really simple thing but I'm really new to python.