eland.Series.mod#

Series.mod(right: Series) Series#

Return modulo of series and right, element-wise (binary operator mod %).

Parameters#

right: eland.Series

Returns#

eland.Series

Examples#

>>> 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    0.980000
1    1.980000
2    1.979996
3    0.979996
4    0.980003
dtype: float64