df2021['2021ALL']=df2021[df2021.columns[3:15]].apply(lambda x: ''.join([str(i) for i in list(x)]) ,axis=1)+'0'
pandas 多列合并成一列
最新推荐文章于 2024-10-23 06:56:35 发布
df2021['2021ALL']=df2021[df2021.columns[3:15]].apply(lambda x: ''.join([str(i) for i in list(x)]) ,axis=1)+'0'