import logging


def filter_short_abstracts(papers, min_length):
    """
    Remove papers with short abstract
    :param papers: DataFrame with papers
    :param min_length: minimum abstract length to not be removed
    """
    filtered_papers = papers[papers["abstract"].apply(len) >= min_length]
    logging.info(f"Removed {len(papers) - len(filtered_papers)} papers with abstracts "
                 f"shorter than {min_length} characters")
    return filtered_papers