bigframes.pandas.DataFrame.rfloordiv#
- DataFrame.rfloordiv(other: float | int | Series | DataFrame, axis: str | int = 'columns') DataFrame[source]#
Get integer division of DataFrame and other, element-wise (binary operator //).
Equivalent to
other // dataframe. With reverse version, rfloordiv.Among flexible wrappers (add, sub, mul, div, mod, pow) to arithmetic operators: +, -, *, /, //, %, **.
Note
Mismatched indices will be unioned together.
Examples:
>>> df = bpd.DataFrame({ ... 'A': [1, 2, 3], ... 'B': [4, 5, 6], ... }) >>> df['A'].rfloordiv(df['B']) 0 4 1 2 2 2 dtype: Int64
It’s equivalent to using arithmetic operator:
//:>>> df['B'] // (df['A']) 0 4 1 2 2 2 dtype: Int64
- Parameters:
- Returns:
DataFrame result of the arithmetic operation.
- Return type: