@@ -345,16 +345,16 @@ def _get_op_name(op, special):
345
345
346
346
_add_example_FRAME = """
347
347
>>> a = pd.DataFrame([1, 1, 1, np.nan], index=['a', 'b', 'c', 'd'],
348
- columns=['one'])
348
+ ... columns=['one'])
349
349
>>> a
350
350
one
351
351
a 1.0
352
352
b 1.0
353
353
c 1.0
354
354
d NaN
355
355
>>> b = pd.DataFrame(dict(one=[1, np.nan, 1, np.nan],
356
- two=[np.nan, 2, np.nan, 2]),
357
- index=['a', 'b', 'd', 'e'])
356
+ ... two=[np.nan, 2, np.nan, 2]),
357
+ ... index=['a', 'b', 'd', 'e'])
358
358
>>> b
359
359
one two
360
360
a 1.0 NaN
@@ -520,16 +520,16 @@ def _get_op_name(op, special):
520
520
Examples
521
521
--------
522
522
>>> a = pd.DataFrame([1, 1, 1, np.nan], index=['a', 'b', 'c', 'd'],
523
- columns=['one'])
523
+ ... columns=['one'])
524
524
>>> a
525
525
one
526
526
a 1.0
527
527
b 1.0
528
528
c 1.0
529
529
d NaN
530
530
>>> b = pd.DataFrame(dict(one=[1, np.nan, 1, np.nan],
531
- two=[np.nan, 2, np.nan, 2]),
532
- index=['a', 'b', 'd', 'e'])
531
+ ... two=[np.nan, 2, np.nan, 2]),
532
+ ... index=['a', 'b', 'd', 'e'])
533
533
>>> b
534
534
one two
535
535
a 1.0 NaN
@@ -556,14 +556,14 @@ def _get_op_name(op, special):
556
556
other : Series, DataFrame, or constant
557
557
axis : {{0, 1, 'index', 'columns'}}
558
558
For Series input, axis to match Series index on
559
+ level : int or name
560
+ Broadcast across a level, matching Index values on the
561
+ passed MultiIndex level
559
562
fill_value : None or float value, default None
560
563
Fill existing missing (NaN) values, and any new element needed for
561
564
successful DataFrame alignment, with this value before computation.
562
565
If data in both corresponding DataFrame locations is missing
563
566
the result will be missing
564
- level : int or name
565
- Broadcast across a level, matching Index values on the
566
- passed MultiIndex level
567
567
568
568
Notes
569
569
-----
0 commit comments