def convert_indexes(data, guide, units, inplace_units=False):
    """ 
    Converts data from one unit to the other 
 
    Parameters 
    ----------- 
    data: pandas.Series
        to be chanhed from one unit to the other 
    guide: dict
        {names of columns : units to converted to}
    units: dict
        units dictionary
    inplace_units: bool 
        if inunit is a dict, the dict is update in place. "key" keyword must be provided 
    """
    from .. import algs
    data = data.copy()
    guide = algs.parseUnits(guide)
    for idx, outunit in guide.items():
        aux = data[idx] * units[idx]
        aux = aux.to(outunit)
        data.loc[idx] = aux.magnitude
    if inplace_units:
        units.update(guide)
        return data
    else:
        return data, guide
