Skip to content

Note __pow__ return type #182

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 5 commits into from
Jun 29, 2023
Merged
Show file tree
Hide file tree
Changes from 2 commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 3 additions & 0 deletions spec/API_specification/dataframe_api/column_object.py
Original file line number Diff line number Diff line change
Expand Up @@ -295,6 +295,9 @@ def __pow__(self, other: Column | Scalar) -> Column:
"""
Raise this column to the power of `other`.

Integer dtype to the power of non-negative integer dtype is integer dtype.
Float dtype to the power of integer dtype or float dtype is float dtype.

Parameters
----------
other : Column or Scalar
Expand Down
3 changes: 3 additions & 0 deletions spec/API_specification/dataframe_api/dataframe_object.py
Original file line number Diff line number Diff line change
Expand Up @@ -528,6 +528,9 @@ def __pow__(self, other: DataFrame | Scalar) -> DataFrame:
"""
Raise this dataframe to the power of `other`.

Integer to the power of non-negative integer is integer.
Float to the power of integer or float is float.

Parameters
----------
other : DataFrame or Scalar
Expand Down