bigframes.pandas.Series.rdivmod#

Series.rdivmod(other)Tuple[Series,Series][source]#

Return integer division and modulo of Series and other, element-wise (binary operator rdivmod).

Equivalent to other divmod series.

Examples:

>>>a=bpd.Series([1,1,1,np.nan],index=['a','b','c','d'])>>>aa     1.0b     1.0c     1.0d    <NA>dtype: Float64
>>>b=bpd.Series([1,np.nan,1,np.nan],index=['a','b','d','e'])>>>ba     1.0b    <NA>d     1.0e    <NA>dtype: Float64
>>>a.divmod(b)(a     1.0b    <NA>c    <NA>d    <NA>e    <NA>dtype: Float64,a     0.0b    <NA>c    <NA>d    <NA>e    <NA>dtype: Float64)
Parameters:

other – Series, or scalar value

Returns:

The result of the operation. The result is alwaysconsistent with (rfloordiv, rmod) (though pandas may not).

Return type:

Tuple[bigframes.pandas.Series,bigframes.pandas.Series]

On this page

This Page