def td_print(td):
    """ Print formatter for pd.timedelta """
    comps = td.round("1s").components
    retval = ""
    for i, s in enumerate(["days", "hours", "min", "sec"]):
        if comps[i] > 0:
            retval += f"{comps[i]}{s} "
    if retval == "":
        retval = "$\\cdot$"
    return retval