I have a dataframe where the timestamp is in the format HHHHH:MM
timestamp = pd.Series([\'34:23\',\'125:26\',\'15234:52\'], index=index)
I
You can use pandas.Series.apply, i.e.:
def convert(args): return timedelta(hours=int(args[:-3]),minutes=int(args[-2:])) s = pd.Series(['34:23','125:26','15234:52']) s = s.apply(convert)