File tree 1 file changed +15
-1
lines changed
1 file changed +15
-1
lines changed Original file line number Diff line number Diff line change @@ -461,7 +461,7 @@ def make_flex_doc(op_name: str, typ: str) -> str:
461
461
462
462
Parameters
463
463
----------
464
- other : scalar, sequence, Series, or DataFrame
464
+ other : scalar, sequence, Series, dict or DataFrame
465
465
Any single or multiple element data structure, or list-like object.
466
466
axis : {{0 or 'index', 1 or 'columns'}}
467
467
Whether to compare by the index (0 or 'index') or columns.
@@ -556,6 +556,20 @@ def make_flex_doc(op_name: str, typ: str) -> str:
556
556
triangle 2 179
557
557
rectangle 3 359
558
558
559
+ Multiply a dictionary by axis.
560
+
561
+ >>> df.mul({{'angles': 0, 'degrees': 2}})
562
+ angles degrees
563
+ circle 0 720
564
+ triangle 0 360
565
+ rectangle 0 720
566
+
567
+ >>> df.mul({{'circle': 0, 'triangle': 2, 'rectangle': 3}}, axis='index')
568
+ angles degrees
569
+ circle 0 0
570
+ triangle 6 360
571
+ rectangle 12 1080
572
+
559
573
Multiply a DataFrame of different shape with operator version.
560
574
561
575
>>> other = pd.DataFrame({{'angles': [0, 3, 4]}},
You can’t perform that action at this time.
0 commit comments