diff --git a/pandas/core/ops.py b/pandas/core/ops.py index 6c6a54993b669..037c9e31f7157 100644 --- a/pandas/core/ops.py +++ b/pandas/core/ops.py @@ -345,7 +345,7 @@ def _get_op_name(op, special): _add_example_FRAME = """ >>> a = pd.DataFrame([1, 1, 1, np.nan], index=['a', 'b', 'c', 'd'], - columns=['one']) +... columns=['one']) >>> a one a 1.0 @@ -353,8 +353,8 @@ def _get_op_name(op, special): c 1.0 d NaN >>> b = pd.DataFrame(dict(one=[1, np.nan, 1, np.nan], - two=[np.nan, 2, np.nan, 2]), - index=['a', 'b', 'd', 'e']) +... two=[np.nan, 2, np.nan, 2]), +... index=['a', 'b', 'd', 'e']) >>> b one two a 1.0 NaN @@ -520,7 +520,7 @@ def _get_op_name(op, special): Examples -------- >>> a = pd.DataFrame([1, 1, 1, np.nan], index=['a', 'b', 'c', 'd'], - columns=['one']) +... columns=['one']) >>> a one a 1.0 @@ -528,8 +528,8 @@ def _get_op_name(op, special): c 1.0 d NaN >>> b = pd.DataFrame(dict(one=[1, np.nan, 1, np.nan], - two=[np.nan, 2, np.nan, 2]), - index=['a', 'b', 'd', 'e']) +... two=[np.nan, 2, np.nan, 2]), +... index=['a', 'b', 'd', 'e']) >>> b one two a 1.0 NaN @@ -556,14 +556,14 @@ def _get_op_name(op, special): other : Series, DataFrame, or constant axis : {{0, 1, 'index', 'columns'}} For Series input, axis to match Series index on +level : int or name + Broadcast across a level, matching Index values on the + passed MultiIndex level fill_value : None or float value, default None Fill existing missing (NaN) values, and any new element needed for successful DataFrame alignment, with this value before computation. If data in both corresponding DataFrame locations is missing the result will be missing -level : int or name - Broadcast across a level, matching Index values on the - passed MultiIndex level Notes -----