pandas dataframe 值替换

df['TermIndex']=df['TermIndex'].replace([1,2],['一','二']) #替换“TermIndex”的值,将数字转为中文
相关文章
相关标签/搜索