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

Cast categoricals to/from Strings #2823

Closed
stress-tess opened this issue Oct 24, 2023 · 0 comments · Fixed by #2827
Closed

Cast categoricals to/from Strings #2823

stress-tess opened this issue Oct 24, 2023 · 0 comments · Fixed by #2827
Assignees
Labels
enhancement New feature or request User Reported A user submitted the issue

Comments

@stress-tess
Copy link
Member

stress-tess commented Oct 24, 2023

add support for ak.cast(cat, ak.Strings) and ak.cast(str, ak.Categorical). This should be pretty easy. We just need to index the categories by the codes and call the categorical constructor respectively

@stress-tess stress-tess added enhancement New feature or request User Reported A user submitted the issue labels Oct 24, 2023
@stress-tess stress-tess self-assigned this Oct 24, 2023
@stress-tess stress-tess changed the title Cast categoricals to/from Strings Cast categoricals to Strings Oct 24, 2023
@stress-tess stress-tess changed the title Cast categoricals to Strings Cast categoricals to/from Strings Oct 24, 2023
stress-tess pushed a commit to stress-tess/arkouda that referenced this issue Oct 24, 2023
This PR (closes Bears-R-Us#2823) adds the ability to cast to/from Strings and Categorical
stress-tess pushed a commit to stress-tess/arkouda that referenced this issue Oct 24, 2023
This PR (closes Bears-R-Us#2823) adds the ability to cast to/from Strings and Categorical
github-merge-queue bot pushed a commit that referenced this issue Oct 25, 2023
This PR (closes #2823) adds the ability to cast to/from Strings and Categorical

Co-authored-by: Pierce Hayes <[email protected]>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request User Reported A user submitted the issue
Projects
None yet
Development

Successfully merging a pull request may close this issue.

1 participant