Skip to content
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

depr(python): Deprecate arctan2d in favor of arctan2(...).degrees() #16786

Merged
merged 1 commit into from
Jun 6, 2024

Conversation

stinodego
Copy link
Member

@stinodego stinodego commented Jun 6, 2024

Changes

  • Deprecate arctan2d. Users should use pl.arctan2(...).degrees() instead.

Example

Before

>>> lf = pl.LazyFrame({"a": [0, 1], "b": [-1, 0]})
>>> lf.select(pl.arctan2d("a", "b")).collect()
shape: (2, 1)
┌───────┐
│ a     │
│ ---   │
│ f64   │
╞═══════╡
│ 180.0 │
│ 90.0  │
└───────┘

After

>>> lf.select(pl.arctan2("a", "b").degrees()).collect()
shape: (2, 1)
┌───────┐
│ a     │
│ ---   │
│ f64   │
╞═══════╡
│ 180.0 │
│ 90.0  │
└───────┘

@github-actions github-actions bot added deprecation Add a deprecation warning to outdated functionality python Related to Python Polars labels Jun 6, 2024
@stinodego stinodego merged commit d54e076 into main Jun 6, 2024
16 of 18 checks passed
@stinodego stinodego deleted the depr-arctan2d branch June 6, 2024 15:01
@stinodego stinodego changed the title depr(python): Deprecate arctan2d depr(python): Deprecate arctan2d in favor of arctan2(...).degrees() Jun 12, 2024
Wouittone pushed a commit to Wouittone/polars that referenced this pull request Jun 22, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
deprecation Add a deprecation warning to outdated functionality python Related to Python Polars
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant