pandas 直接 计算 多列

cup_leo / 2023-05-10 / 原文

df[['neg','pos']] = (df.apply(lambda x:get_polarity_scores(x['Text']),axis=1)).apply(pd.Series)