def to_series(knowledge_dates, earning_dates):
    return pd.Series(
        index=pd.to_datetime(knowledge_dates),
        data=pd.to_datetime(earning_dates),
    )
Helper for converting a dict of strings to a Series of datetimes.
dataset/ETHPy150Open quantopian/zipline/zipline/testing/core.py/to_series