My code is:
from polyglot.text import Text def getPolyglotPolarity(text): return Text(text).polarity df[\'PolyPolarity\']=df2.apply(getPolyglotPolarity)