Pandasのapplyを複数列で使う方法 2023年3月29日 / 1 min read View more blogs with the tag python , View more blogs with the tag pandas Table of Contents #はじめに #方法 はじめに Pandasのapplyを複数列で使う方法です。 方法 df に apply して、lambda: x で列を指定する。 axis=1 を指定するのも忘れずに。 df['new'] = df.apply(lambda: x['ColA'] + x['ColB'], axis=1)