Combine columns of a dataframe with different delimters

后端 未结 0 986
南旧
南旧 2020-12-16 09:18

I\'m trying to combine the columns of a dataframe like the following

df[\'new_col\'] = df[df.columns].apply(
        lambda x: \': \'.join(x.dropna().astype(s         


        
相关标签:
回答
  • 消灭零回复
提交回复
热议问题