下記では上手く実行されるのに

df['flag'] = df['current'].apply(lambda x : 1 if x >= 5000 else 0 )

下記に変更するとエラーがでます。

df['flag'] = df['current'].apply(lambda x : 1 if x >= df['current2'] else 0 )

エラーメッセージ

ValueError: The truth value of a Series is ambiguous. Use a.empty, a.bool(), a.item(), a.any() or a.all().