def flatten(data):
    """ Converts a list to one dimension by combining each row in sequence.

    Args:
        data (list): The input list.
    Returns:
        list: The one dimensional list.
    """
    result = []
    for x in data:
        if hasattr(x, "__iter__"):
            result.extend(flatten(x))
        else:
            result.append(x)
    return result