def input_fn(df):
    """
    Create features and labels dataframes.

    Parameters
    ----------
    df : pandas.DataFrame
        input pandas.DataFrame

    Returns
    -------
    features: pandas.DataFrame
        pandas.DataFrame with features
    label
        pandas.DataFrame with labels
    """
    # extract label
    label = df['label']
    del df['label']

    # extract features
    features = df['text']
    return features, label