Making the for loop append on all the dataset in python : I'm trying to make the for loop append on all the dataset which is from the range of (0,8675) but it keeps getting error just working with 1 row 

def convert_emoticons(text):
    for emot in EMOTICONS:
        text = re.sub(u'('+emot+')', "_".join(EMOTICONS[emot].replace(",","").split()), text)
    return text

text = (dataset['posts'][0])
convert_emoticons(text)
