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

Adding replace expression #223

Merged
merged 4 commits into from
Jun 12, 2024
Merged

Adding replace expression #223

merged 4 commits into from
Jun 12, 2024

Conversation

Bidek56
Copy link
Collaborator

@Bidek56 Bidek56 commented Jun 11, 2024

Adding replace expression to close #222

@Bidek56 Bidek56 self-assigned this Jun 11, 2024
@Bidek56 Bidek56 added the enhancement New feature or request label Jun 11, 2024
@Bidek56 Bidek56 changed the title Adding expression replace Adding replace expression Jun 12, 2024
@Bidek56 Bidek56 marked this pull request as ready for review June 12, 2024 01:04
polars/lazy/expr/index.ts Outdated Show resolved Hide resolved
polars/lazy/expr/index.ts Outdated Show resolved Hide resolved
polars/lazy/expr/index.ts Outdated Show resolved Hide resolved
polars/lazy/expr/index.ts Outdated Show resolved Hide resolved
Bidek56 and others added 2 commits June 12, 2024 06:31
Co-authored-by: Cory Grinstead <universalmind.candy@gmail.com>
@universalmind303 universalmind303 merged commit e107597 into pola-rs:main Jun 12, 2024
9 checks passed
@Bidek56 Bidek56 deleted the issue-222 branch June 12, 2024 14:55
@sezanzeb
Copy link
Contributor

Thanks for doing this so quickly!

This is incompatible with the types. But isn't this also valid?

pl.col('foo').replace(
    [ 'a', 'b' ],
    [ 'c', 'd' ]
)

@Bidek56
Copy link
Collaborator Author

Bidek56 commented Jun 13, 2024

yes, it's valid. I have created #230 for it. Thanks for pointing this out!

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

Successfully merging this pull request may close these issues.

replace/map_dict
3 participants