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

Categorical revmaps are not merged when concatenated inside a struct #18814

Closed
orlp opened this issue Sep 18, 2024 · 1 comment
Closed

Categorical revmaps are not merged when concatenated inside a struct #18814

orlp opened this issue Sep 18, 2024 · 1 comment
Assignees

Comments

@orlp
Copy link
Collaborator

orlp commented Sep 18, 2024

Reproduction:

>>> a = pl.DataFrame({"x": ["a"]}, schema={"x": pl.Categorical})
>>> b = pl.DataFrame({"x": ["b"]}, schema={"x": pl.Categorical})
>>> pl.concat([a.select(pl.struct(pl.col.x)), b.select(pl.struct(pl.col.x))])
shape: (2, 1)
┌───────────┐
│ x         │
│ ---       │
│ struct[1] │
╞═══════════╡
│ {"a"}     │
│ {"a"}     │
└───────────┘

This should obviously be {"a"}, {"b"}.

@coastalwhite
Copy link
Collaborator

This was fixed by #18815.

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