如何将pandas background_gradient应用于数据框的特定行

时间:2020-02-24 03:07:50

标签: pandas background gradient

我正在尝试将其应用于数据帧中的某些行段,但是这段代码给了我错误。

df.style.background_gradient(axis=0,subset=pd.IndexSlice[1:3],cmap='coolwarm')

0 个答案:

没有答案