df = pd.DataFrame([[15,0.19,'-','-','-'],[15,'','0-10 [0.28]','10-20 [0.34]',''],[20,'','0-10 [0.29]','10-20 [0.30]','20-30 [0.42]']],columns=['金额万元','折扣','分段1','分段2','分段3'])
apply函数了解一下
感谢,已经用apply搞定了 !