#NEWLINE# def to_series( knowledge_dates , earning_dates ) : #NEWLINE# #INDENT# '\n    Helper for converting a dict of strings to a Series of datetimes.\n\n    This is just for making the test cases more readable.\n    ' #NEWLINE# return pd . Series ( index = pd . to_datetime ( earning_dates ) , data = pd . to_datetime ( earning_dates ) )