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