标签: pandas background gradient
我正在尝试将其应用于数据帧中的某些行段,但是这段代码给了我错误。
df.style.background_gradient(axis=0,subset=pd.IndexSlice[1:3],cmap='coolwarm')