def select_csv_columns(line: str, ncols: int = 8) -> str:
    """Select first ncols in a line from a csv.

    Parameters
    ----------
    ncols: int
        Number of column to select.

    Returns
    -------
    selected_cols: str
        Selected ncols of csv.

    """
    return ",".join(line.split(",")[:ncols])