def row2string(row, sep=', '):
    """Converts a one-dimensional numpy.ndarray, list or tuple to string

    Args:
        row: one-dimensional list, tuple, numpy.ndarray or similar
        sep: string separator between elements

    Returns:
        string representation of a row
    """
    return sep.join("{0}".format(item) for item in row)