obj2=pdSeries-43-1205index=one three two fivefour# 对于one、five和four进行乘法运算obj2onefivefour = obj2onefivefour 2# 对于three进行加法运算obj2three = obj2three + 75# 对于two进行减法运算obj2two = obj2two - 4printobj2
输出结果为:
one -8.0 three 10.5 two -5.0 five 1.0 four -2.0 dtype: float64
原文地址: http://www.cveoy.top/t/topic/fqAp 著作权归作者所有。请勿转载和采集!