from typing import Iterable


def row2string(row: Iterable[float], sep: str = ', ') -> str:
    """
    Converts a one-dimensional iterable of floats to string.

    Parameters
    ----------
    row: list or tuple or 1-D ndarray
    sep: str
        string separator between elements (default: ', ')

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