Turn any AI agent into an AI Scientist. The #1 Agent Skills library for science, used by 250,000+ scientists worldwide. 177 ready-to-use validated skills plus 100+ scientific databases covering biology, chemistry, medicine, and drug discovery. Compatible with Cursor, Claude Code, Codex, Pi, Antigravity, and the open Agent Skills standard.
Polars review and execution scope
Reviewed 2026-10-01. Targets Polars 1.44.2 (Python >=3.10), using its published Python wheel, public release notes, and official stable API/user documentation. The native recipe suite ran on macOS ARM64, Python 3.13.3, with PyArrow 25.0.1, pandas 3.0.6, NumPy 2.5.3, SQLAlchemy 2.1.1, fastexcel 0.21.0, XlsxWriter 3.2.9. These are a tested combination, not minimum versions for every integration.
Sources and corrected contracts
- 1.44 release notes and
1.44.2 release:
current version, conditional masking, SQL changes, and deprecations. The 1.44
implementation masks unused elementwise branch inputs. The older
whendocstring saying all branches always execute is not an accurate description of every 1.44 query; native tests cover masked casts and failing gathers. - Collect,
streaming, and
lazy API:
engine="streaming", materialized output versus direct sinks, lazy schema I/O, optimizer boundaries and memory limitations.collectdefaults toauto, which honors engine affinity and otherwise uses in-memory execution in 1.44.2. GPU needs compatible NVIDIA/CUDA hardware andcudf-polars; it is not tested here. - Join, as-of join, window mapping, lazy pivot: cardinality, null policy, sorting/tolerance, row alignment, declared pivot levels.
- Concat:
use
horizontal_extendto intentionally pad shorter inputs. In 1.44.2 the compatibility wrapper still padshorizontalwith a deprecation warning, even though the API description already describes the forthcoming equal-height contract.strict=Trueworks in this release but is transitional. Validate heights and sample IDs explicitly instead of relying on a changing default. - I/O index, Excel, fastexcel, database read, URI read, database write: source/file distinctions, sheet IDs/options, connection versus URI, driver-bound parameters, result batching, write mode, and distinct IPC file/stream methods.
- Cloud storage,
Azure credentials,
BigQuery RowIterator:
provider credentials and native cloud transport, SDK-to-Arrow conversion. Polars
and provider SDKs own transport/pagination; there are no custom REST endpoints
in this skill. BigQuery
to_arrow()loads all result pages into one Arrow table. - SQL, pandas migration, missing data: local SQL versus database execution, no index alignment, null versus NaN, and conversion defaults. Scientific units and time-zone interpretation remain the caller's responsibility.
Native validation and limits
Run python tests/run_all.py --isolated polars from the repository. The suite
checks leading-zero IDs, CSV record skipping and invalid casts; duplicate raw
headers; null/NaN/infinity and statistical conventions; optimizer-preserving
filters; expression contexts/pipe; join cardinality and as-of alignment;
concatenation and eager/lazy pivots; window layout/time order; local
CSV/Parquet/JSON/NDJSON/IPC/Excel round trips; SQLite parameters/batches/write
policy; local SQL; and Arrow/pandas/NumPy conversion semantics.
This is small synthetic correctness testing, not a throughput, peak-memory,
out-of-core, or GPU benchmark. Remote S3/Azure/GCS, PostgreSQL/MySQL,
ConnectorX/ADBC, and BigQuery examples were checked against documentation and
signatures, not authenticated services. Their credentials, driver installation,
network access, permissions, and provider costs require deployment-specific
validation. Example fragments with undefined inputs or ... are illustrative;
they are not complete stand-alone programs. No real research dataset was used.