bigframes.pandas.DataFrame.rtruediv#

DataFrame.rtruediv(other:float|int|Series|DataFrame,axis:str|int='columns')DataFrame[source]#

Get floating division of DataFrame and other, element-wise (binary operator/).

Equivalent toother/dataframe. With reverse version,truediv.

Among flexible wrappers (add,sub,mul,div,mod,pow) toarithmetic operators:+,-,*,/,//,%,**.

Note

Mismatched indices will be unioned together.

Examples:

>>>df=bpd.DataFrame({...'A':[1,2,3],...'B':[4,5,6],...})>>>df['A'].rtruediv(df['B'])0    4.01    2.52    2.0dtype: Float64

It’s equivalent to using arithmetic operator:/:

>>>df['B']/(df['A'])0    4.01    2.52    2.0dtype: Float64
Parameters:
  • other (float,int, orSeries) – Any single or multiple element data structure, or list-like object.

  • axis ({0 or'index',1 or'columns'}) – Whether to compare by the index (0 or ‘index’) or columns.(1 or ‘columns’). For Series input, axis to match Series index on.

Returns:

DataFrame result of the arithmetic operation.

Return type:

bigframes.pandas.DataFrame

This Page