We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
.arr.explode()
import polars as pl df = pl.DataFrame({"a": [[1, 2, 3]]}) df.select(pl.col.a.arr.explode()) # shape: (3, 1) # ┌─────┐ # │ a │ # │ --- │ # │ i64 │ # ╞═════╡ # │ 1 │ # │ 2 │ # │ 3 │ # └─────┘
No response
Update: Perhaps a better example is using string inputs:
pl.DataFrame({"a": ["one"]}).select(pl.col.a.arr.explode()) # shape: (1, 1) # ┌─────┐ # │ a │ # │ --- │ # │ str │ # ╞═════╡ # │ one │ # └─────┘
Other methods error as expected:
df.select(pl.col.a.arr.to_struct()) # InvalidOperationError: expected Array type, got: list[i64] # # Resolved plan until failure: # # ---> FAILED HERE RESOLVING 'select' <--- # DF ["a"]; PROJECT */1 COLUMNS; SELECTION: None
InvalidOperationError
main
The text was updated successfully, but these errors were encountered:
explode
@orlp May you please clear @ritchie46 comment here #19115?
Sorry, something went wrong.
@barak1412 I don't understand what you're asking.
@orlp thanks, @ritchie46 answered me
@orlp May you please assign me? I hope I will open PR today evening.
Successfully merging a pull request may close this issue.
Checks
Reproducible example
Log output
No response
Issue description
Update: Perhaps a better example is using string inputs:
Other methods error as expected:
Expected behavior
InvalidOperationError
Installed versions
The text was updated successfully, but these errors were encountered: