DataFrame.div()

DataFrame.div(other, axis='columns', level=None, fill_value=None) [source]

Floating division of dataframe and other, element-wise (binary operator truediv).

Equivalent to dataframe / other, but with support to substitute a fill_value for missing data in one of the inputs.

Parameters:

other : Series, DataFrame, or constant

axis : {0, 1, ?index?, ?columns?}

For Series input, axis to match Series index on

fill_value : None or float value, default None

Fill missing (NaN) values with this value. If both DataFrame locations are missing, the result will be missing

level : int or name

Broadcast across a level, matching Index values on the passed MultiIndex level

Returns:

result : DataFrame

Notes

Mismatched indices will be unioned together

doc_Pandas
2017-01-12 04:45:43
Comments
Leave a Comment

Please login to continue.