This topic created in 1657 days ago, the information mentioned may be changed or developed.
#函数体
def wordsep(df_word):
df.loc[df_word.index,['主体']] = '' <------------------这一行
return result
#调用
df['分词'] = df.apply(wordsep,axis=1)
 |
|
1
mfanming Oct 13, 2021
函数里怎么也调不出索引值,目前做法是,生成一列跟索引一样的,感觉好笨的方法
|