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

Open
orlp opened this issue Sep 18, 2024 · 0 comments
Open

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

orlp opened this issue Sep 18, 2024 · 0 comments
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"}.

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