We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
concat
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
import polars as pl pl.concat( [ pl.DataFrame([[{"x": "foo", "y": "bar"}]]), pl.DataFrame([[{"z": None}]]), ], ) # shape: (2, 1) # ┌───────────────┐ # │ column_0 │ # │ --- │ # │ struct[2] │ # ╞═══════════════╡ # │ {"foo","bar"} │ # │ {null,null} │ # └───────────────┘

If a non-null value is used, it errors.
pl.concat( [ pl.DataFrame([[{"x": "foo", "y": "bar"}]]), pl.DataFrame([[{"z": "baz"}]]), ], ) # SchemaError: cannot append series, data types don't match
SchemaError
--------Version info--------- Polars: 1.29.0 Index type: UInt32 Platform: macOS-13.6.1-arm64-arm-64bit-Mach-O Python: 3.13.0 (main, Oct 7 2024, 05:02:14) [Clang 15.0.0 (clang-1500.1.0.2.5)] LTS CPU: False ----Optional dependencies---- adbc_driver_manager <not installed> altair <not installed> boto3 <not installed> cloudpickle <not installed> connectorx <not installed> deltalake <not installed> fastexcel 0.12.0 fsspec <not installed> gevent <not installed> google.auth <not installed> great_tables 0.14.0 matplotlib <not installed> nest_asyncio <not installed> numpy 2.1.3 openpyxl 3.1.5 pandas 2.2.3 pyarrow 18.0.0 pydantic <not installed> pyiceberg <not installed> sqlalchemy <not installed> torch <not installed> xlsx2csv <not installed> xlsxwriter 3.2.0
The text was updated successfully, but these errors were encountered:
No branches or pull requests
Checks
Reproducible example
Log output
Issue description
If a non-null value is used, it errors.
Expected behavior
SchemaError
Installed versions
The text was updated successfully, but these errors were encountered: