def get_data(data, variable):
    """Perform transformations on raw data and int and converts them to supported types.

    :param data: Raw data dict object
    :param variable: key of dictionary to be transformed

    :returns transformed data (str)
    """
    if isinstance(data.get(variable), list):
        return ",".join(map(str, data.get(variable)))
    if isinstance(data.get(variable), (dict, int)):
        return str(data.get(variable))