import re


def remove_links(df, token_col="text_tokens"):

    """
    Removes links (all text between < and >) in tokenised column
    Args:
        df (DataFrame): dataframe containing tokenised text
        token_col (string): column in df containitng tokenised text

    Returns: df with links removed from tokenised text

    """
    proc_words = []
    for words in df[token_col]:
        proc_words.append([re.sub('<[^>]+>', "", word)
                           for word in words
                           ])

    df[token_col] = proc_words
    return df