Isn't there a pandas functionality for this? `pandas.Timestamp(time_str)`?