File tree 1 file changed +25
-3
lines changed
1 file changed +25
-3
lines changed Original file line number Diff line number Diff line change @@ -459,14 +459,15 @@ def _get_op_name(op, special):
459
459
Fill existing missing (NaN) values, and any new element needed for
460
460
successful Series alignment, with this value before computation.
461
461
If data in both corresponding Series locations is missing
462
- the result will be missing
462
+ the result will be missing.
463
463
level : int or name
464
464
Broadcast across a level, matching Index values on the
465
- passed MultiIndex level
465
+ passed MultiIndex level.
466
466
467
467
Returns
468
468
-------
469
- result : Series
469
+ Series
470
+ The result of the operation.
470
471
471
472
See Also
472
473
--------
@@ -495,6 +496,27 @@ def _get_op_name(op, special):
495
496
d 1.0
496
497
e NaN
497
498
dtype: float64
499
+ >>> a.subtract(b, fill_value=0)
500
+ a 0.0
501
+ b 1.0
502
+ c 1.0
503
+ d -1.0
504
+ e NaN
505
+ dtype: float64
506
+ >>> a.multiply(b)
507
+ a 1.0
508
+ b NaN
509
+ c NaN
510
+ d NaN
511
+ e NaN
512
+ dtype: float64
513
+ >>> a.divide(b, fill_value=0)
514
+ a 1.0
515
+ b inf
516
+ c inf
517
+ d 0.0
518
+ e NaN
519
+ dtype: float64
498
520
"""
499
521
500
522
_arith_doc_FRAME = """
You can’t perform that action at this time.
0 commit comments