首页 > 解决方案 > Converting Lemmatized output to string in data frame

问题描述

After applying lemmatization to my text data frame eg, df["body"]
I have output in this format

['withdraw',
 'policy',
 'protected',
 'amount',
 'dec',
 'still',
 'got',
 'redeem',
 'amount']

<class 'pandas.core.series.Series'> #Output type
How do I convert it back to string and pandas series type like this?

withdraw policy protected amount dec still got redeem amount

标签: python-3.xpandasdataframenltkseries

解决方案


推荐阅读