我试图着色特定的输出内容,类似于这样。
df['a'] = df['a'].fillna(df['b'].map(s)).style.applymap(lambda x: "background-color:yellow")
所以我遇到了错误。
AttributeError: 'Series' object has no attribute 'style'
我该如何做才能仅为输出结果添加颜色?