def _transform_bools(transcript_group):
    """Transform booleans to integers

    Args:
        transcript_group (pandas.DataFrame): The transcript dataset

    Returns:
        pandas.DataFrame: The modified transcript with the booleans transformed
    """

    transcript_group["received"] = transcript_group["received"].astype(int)
    transcript_group["viewed"] = transcript_group["viewed"].astype(int)
    transcript_group["completed"] = transcript_group["completed"].astype(int)
    transcript_group["purchased"] = transcript_group["purchased"].astype(int)
    transcript_group["web"] = transcript_group["web"].astype(int)
    transcript_group["email"] = transcript_group["email"].astype(int)
    transcript_group["mobile"] = transcript_group["mobile"].astype(int)
    transcript_group["social"] = transcript_group["social"].astype(int)

    return transcript_group