def clean_rows(df, label_col=LABEL_COL):
    """Drop badly formatted rows from the input dataframe

    Args:
        df (pd.DataFrame): Input dataframe
        label_col (str): Name of label column.
            Defaults to the standardized column name that is set after running the clean_col method.

    Returns:
        pd.DataFrame
    """
    snli_df = df.dropna()
    snli_df = snli_df.loc[snli_df[label_col] != "-"].copy()

    return snli_df
Drop badly formatted rows from the input dataframe

    Args:
        df (pd.DataFrame): Input dataframe
        label_col (str): Name of label column.
            Defaults to the standardized column name that is set after running the clean_col method.

    Returns:
        pd.DataFrame
    
utils_nlp/dataset/snli.py