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

.rename() and .alias() #121

Open
Nekobaex opened this issue Sep 18, 2023 · 1 comment
Open

.rename() and .alias() #121

Nekobaex opened this issue Sep 18, 2023 · 1 comment

Comments

@Nekobaex
Copy link

Describe your feature request

Hello, I have noticed that in the nodejs-polars library,
the .rename() function can be called by Series, DataFrame,
while the .alias() function can be called by Series, Expr.
These two functions serve the same purpose,
but I was wondering if it would be possible to make one of them applicable to all three types: Series, DataFrame, and Expr.

Thank you!

@Nekobaex Nekobaex changed the title .ename() and .alias() .rename() and .alias() Sep 18, 2023
@Bidek56
Copy link
Collaborator

Bidek56 commented Sep 18, 2023

@Nekobaex nodejs-polars keeps functionality on par with Python Polars
I believe .rename() and .alias() functionality is the same as in Python Polars

It makes sense, since df.select(pl.col("foo")) results in an expression which then can be aliased.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants