import re


def getEntities(data_all):
    """
    This function contains a list of entitites from a supplied data frame.

    Input:
        data_all: data frame with entities

    Returns:
        List of entities
    """

    data_replaced = [re.search('\|.*}', s) for s in data_all[0]]

    entities = list()

    for match in data_replaced:
        if match is not None:

            entities.append(match.group(0))
            entities = list(set(entities))

    # remove first and last character
    entities = [string[1:-1] for string in entities]

    return (entities)