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

Allow StringNameSpace::split() to take an expression as its first argument #7683

Closed
rben01 opened this issue Mar 21, 2023 · 0 comments · Fixed by #20999
Closed

Allow StringNameSpace::split() to take an expression as its first argument #7683

rben01 opened this issue Mar 21, 2023 · 0 comments · Fixed by #20999
Labels
enhancement New feature or an improvement of an existing feature

Comments

@rben01
Copy link
Contributor

rben01 commented Mar 21, 2023

Problem description

Current, StringNameSpace::split() only lets one split on a fixed string. It would be nice to be able to split on an expression that evaluates to a string. This way you could use a different separator per row.

In my case, I have lists-as-strings that use commas as the separator in some years and semicolons in other years, and to get the original list back, I'd like to be able to select the separator to turn these into a list on a year-by-year basis, but it doesn't seem possible.

@rben01 rben01 added the enhancement New feature or an improvement of an existing feature label Mar 21, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or an improvement of an existing feature
Projects
None yet
Development

Successfully merging a pull request may close this issue.

1 participant