Skip to content

Commit 1ea2632

Browse files
adding pow example for dataframe pandas-dev#57419 (pandas-dev#57442)
* adding pow exmpale for adtaframe pandas-dev#57419 * Fixing the data format * removing extra space * re-run the jobs * updating docstring values * testing pipeline
1 parent c7f80f4 commit 1ea2632

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, 5],
628+
... 'B': [6, 7, 8, 9]}})
629+
>>> df_pow.pow(2)
630+
A B
631+
0 4 36
632+
1 9 49
633+
2 16 64
634+
3 25 81
626635
"""
627636

628637
_flex_comp_doc_FRAME = """

0 commit comments

Comments
 (0)