"convert a dataframe `df`'s column `id` into datetime, after removing the first and last 3 letters",pd.to_datetime(df.ID.str[1:-3])