def extract_csv_row(filename: str, row: int) -> str:
    """Extracts a selected line from the csv file.

    Args:
        filename:
            A path to the file.
        row:
            The row number to extract.

    Returns:
        The row from the csv file as a string.
    """
    with open(filename, 'r') as file:
        extracted = file.readlines()[row - 1:row][0].strip('\n')
    return extracted