eland.Series.div#

Series.div(right: Series) Series#

返回系列和右侧的浮点除法,逐元素(二元运算符 truediv)。

参数#

right: 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
>>> df.total_quantity
0    2
1    2
2    2
3    2
4    2
Name: total_quantity, dtype: int64
>>> df.taxful_total_price / df.total_quantity
0    18.490000
1    26.990000
2    99.989998
3    87.489998
4    40.490002
dtype: float64