Skip to content

Commit 5e5d670

Browse files
committed
adding pow exmpale for adtaframe pandas-dev#57419
1 parent 1d7aedc commit 5e5d670

File tree

1 file changed

+9
-0
lines changed

1 file changed

+9
-0
lines changed

pandas/core/ops/docstrings.py

+9
Original file line numberDiff line numberDiff line change
@@ -623,6 +623,15 @@ def make_flex_doc(op_name: str, typ: str) -> str:
623623
B square 0.0 0.0
624624
pentagon 0.0 0.0
625625
hexagon 0.0 0.0
626+
627+
>>> df_pow = pd.DataFrame({'A': [2, 3, 4],
628+
... 'B': [5, 6, 7]})
629+
>>> df_pow.pow(2)
630+
A B
631+
0 4 25
632+
1 9 36
633+
2 16 49
634+
626635
"""
627636

628637
_flex_comp_doc_FRAME = """

0 commit comments

Comments
 (0)