eland.Series.rsub#
- Series.rsub(left: Series) Series #
返回系列和左侧的减法,按元素计算(二元运算符 sub)。
参数#
left: eland.Series
返回值#
eland.Series
示例#
>>> df = ed.DataFrame('http://localhost:9200', 'ecommerce').head(5) >>> df.taxful_total_price 0 36.98 1 53.98 2 199.98 3 174.98 4 80.98 Name: taxful_total_price, dtype: float64 >>> 1.0 - df.taxful_total_price 0 -35.980000 1 -52.980000 2 -198.979996 3 -173.979996 4 -79.980003 Name: taxful_total_price, dtype: float64