def round_list(x, n = 2):
    """Auxiliary function to round elements of a list to n decimal places.

    Parameters
    ----------
    x : list
        List of float values.
    n : int
        Number of decmial places to round the elements of list.

    Returns
    -------
    list
        List with elements rounded to n decimal places.

    """
    try:
        return [round(i,n) for i in x]
    except:
        return x