>>983
うちの環境だとdf['n']df['s']のとこでloc使えエラーが出てしまったので
sel=df['s'].map(lambda x:'abc' in x)
df.loc[sel,['n']]=9
これでいけました。大変助かりました
ありがとうございました