def get_CV_current(CV):
    """
    Helper function to compute CV current.

    Args:
        CV (pd.DataFrame): CV segement of charge

    Returns:
        (float): current reached at the end of the CV segment

    """
    if not CV.empty:
        return(CV.current.iat[-1])