1
欠損値の条件ロジックに基づいて新しい列を追加します。 if df['bb'] is not null and df['aa']==a, then c else d
パンダは、私はこのようなパンダのデータフレームを持って
他の質問に対する回答に基づいて、回答は次のようにする必要があります。
df['ff'] = df.apply(lambda x: x['bb'].isnull(),axis=1) & (x['aa']=='a')
しかし、私はこのようなエラーが出る:
("'str' object has no attribute 'isnull'", 'occurred at index 0')