DataFrame.rsub(other, axis='columns', level=None, fill_value=None)
[source]
Subtraction of dataframe and other, element-wise (binary operator rsub
).
Equivalent to other - dataframe
, 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 |
See also
Mismatched indices will be unioned together
© 2011–2012 Lambda Foundry, Inc. and PyData Development Team
© 2008–2011 AQR Capital Management, LLC
© 2008–2014 the pandas development team
Licensed under the 3-clause BSD License.
http://pandas.pydata.org/pandas-docs/version/0.19.2/generated/pandas.DataFrame.rsub.html