pandasで全ての列をカンマで区切って結合した新しい列を作成する方法2022/6/8 / 1 min readView more blogs with the tag python, View more blogs with the tag pandasTable of Contents#はじめに#方法はじめに 簡単ですが、これで解決するまで結構調べてしまいました…。 こういう列を df A B a b c d こうします。 df_new A B new_col a b a,b c d c,d 方法 df_new['new\_col'] = df.apply(','.join, axis=1)