def dd_to_dict(dd):
    """
    turn the drawdown object into a dict
    :param dd: the dd object
    :return: a dictionary
    """
    ddict = {'From': dd.start_date, 'Trough': dd.trough_date, 'End': dd.end_date, 'Depth': dd.depth,
             'Length': dd.length,
             'To Trough': dd.to_trough, 'Recovery': dd.recovery}
    return ddict