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

round trip discrepancies for Index with Categorical values #3468

Closed
ajpotts opened this issue Jul 12, 2024 · 0 comments · Fixed by #3472
Closed

round trip discrepancies for Index with Categorical values #3468

ajpotts opened this issue Jul 12, 2024 · 0 comments · Fixed by #3472
Assignees
Labels
bug Something isn't working

Comments

@ajpotts
Copy link
Contributor

ajpotts commented Jul 12, 2024

Describe the bug
Round trip conversion ( to pandas and back to arkouda) of an Index with Categorical values results in an Index with String values.

To Reproduce

In [23]: i1 = ak.Index(ak.Categorical(ak.array(["a", "a", "b"])))

In [24]: i2 = ak.Index(i1.to_pandas())

In [25]: type(i1.values)
Out[25]: arkouda.categorical.Categorical

In [26]: type(i2.values)
Out[26]: arkouda.strings.Strings

Expected behavior
Round trip conversion should be the identity transformation.

@ajpotts ajpotts added the bug Something isn't working label Jul 12, 2024
@ajpotts ajpotts self-assigned this Jul 12, 2024
ajpotts added a commit to ajpotts/arkouda that referenced this issue Jul 15, 2024
ajpotts added a commit to ajpotts/arkouda that referenced this issue Jul 15, 2024
ajpotts added a commit to ajpotts/arkouda that referenced this issue Jul 15, 2024
ajpotts added a commit to ajpotts/arkouda that referenced this issue Jul 15, 2024
ajpotts added a commit to ajpotts/arkouda that referenced this issue Jul 19, 2024
ajpotts added a commit to ajpotts/arkouda that referenced this issue Jul 19, 2024
ajpotts added a commit to ajpotts/arkouda that referenced this issue Jul 19, 2024
ajpotts added a commit to ajpotts/arkouda that referenced this issue Jul 19, 2024
ajpotts added a commit to ajpotts/arkouda that referenced this issue Jul 22, 2024
ajpotts added a commit to ajpotts/arkouda that referenced this issue Jul 23, 2024
@ajpotts ajpotts added this to the Pandas Alignment milestone Jul 23, 2024
ajpotts added a commit to ajpotts/arkouda that referenced this issue Jul 23, 2024
github-merge-queue bot pushed a commit that referenced this issue Jul 23, 2024
…es (#3472)

* Closes #3468 round trip discrepancies for Index with Categorical values

* response to code review

---------

Co-authored-by: Amanda Potts <[email protected]>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

Successfully merging a pull request may close this issue.

1 participant