Polars has about a thousand public entry points. This page groups them into feature groups and says whether the latest Nanuq release has it, has it partly (fewer options or types than Polars), is missing it, or does not plan it (Python-only features, or ones without a Nim counterpart). Notes name what is still missing inside a group. A ringed status is new in this release. Once the next release has a plan, open groups also show the release that plans them.
The data lives in docs/coverage/polars.json and is refreshed in each release PR. Names on this page are Polars' Python names; Nanuq uses the same names in camelCase. The dev log explains the design choices.
Nanuq 0.6.1
By area↑ contents
| Area | Groups | Has it | Partly | Missing | New in 0.6 |
|---|---|---|---|---|---|
| Data types | 13 | 12 | 0 | 0 | 3 |
| Series | 10 | 10 | 0 | 0 | 2 |
| DataFrame construction and IO | 17 | 14 | 1 | 1 | 6 |
| DataFrame (eager) | 13 | 11 | 2 | 0 | 4 |
| LazyFrame | 11 | 10 | 1 | 0 | 6 |
| GroupBy | 4 | 4 | 0 | 0 | 2 |
| Joins and concatenation | 5 | 5 | 0 | 0 | 2 |
| Expressions: core | 20 | 20 | 0 | 0 | 4 |
| Expressions: strings | 6 | 6 | 0 | 0 | 1 |
| Expressions: temporal | 7 | 7 | 0 | 0 | 1 |
| Expressions: list, array, struct, categorical, binary | 5 | 5 | 0 | 0 | 1 |
| User-defined functions and plugins | 4 | 2 | 1 | 0 | 1 |
| Interop with Nim and the ecosystem | 6 | 5 | 1 | 0 | 1 |
| Engine, configuration and distribution | 7 | 5 | 1 | 0 | 3 |
Still open↑ contents
Groups not fully covered in 0.6.1, by priority: P1 next, P2 after, P3 when someone needs it. Ideas that are picked up go through OpenSpec; the rest wait in BACKLOG.md.
| Prio | Feature group | 0.6.1 | Area | What is missing |
|---|---|---|---|---|
| P1 | Plotting | partly | Interop with Nim and the ecosystem | Works through toSeq or toDatamancer with nim-plotly and ggplotnim. A df.plot namespace is in BACKLOG. |
| P2 | Databases | partly | DataFrame construction and IO | 0.6: optional module nanuq/database on db_connector, SQLite only. PostgreSQL and MySQL to follow. |
| P2 | Library size and distribution | partly | Engine, configuration and distribution | A static library of about 286 MB (53 MB download). Shared library and per-area Cargo features are in BACKLOG. |
| P3 | Avro | missing | DataFrame construction and IO | Not started. |
| P3 | Combining | partly | DataFrame (eager) | See Joins. joinWhere and mergeSorted are new in 0.6; concat align is missing. |
| P3 | Apply and iterate | partly | DataFrame (eager) | mapGroups and group iteration exist. mapRows is missing. pipe is not needed in Nim: any proc chains with the dot syntax. |
| P3 | Map and UDF | partly | LazyFrame | Expr mapBatches and mapGroups since 0.5. LazyFrame.map_batches is missing. |
| P3 | Batch UDF | partly | User-defined functions and plugins | mapBatches and mapGroups since 0.5; mapRows and LazyFrame.map_batches are missing. |
Catalogue↑ contents
- Data types
- Series
- DataFrame construction and IO
- DataFrame (eager)
- LazyFrame
- GroupBy
- Joins and concatenation
- Expressions: core
- Expressions: strings
- Expressions: temporal
- Expressions: list, array, struct, categorical, binary
- User-defined functions and plugins
- Interop with Nim and the ecosystem
- Engine, configuration and distribution
Data types
Polars has a closed set of Arrow-backed data types. Nanuq has a DataType for each, built from Nim types (dataType(T)) and printed as Nanuq code.
| Feature group | 0.6.1 | Polars names | Notes |
|---|---|---|---|
| Booleans, integers, floats | has it | Boolean, Int8..Int128, UInt8..UInt128, Float32/64 | Columns from every sized Nim number since 0.5. 0.6 reads UInt64 values above high(int64) and adds 128-bit integers (used by Decimal and str.toInteger). |
| String | has it | String (Utf8) | Builders, readers, nulls. |
| Null | has it | Null | Null DataType and lit(nil). |
| Date, Datetime, Duration, Time | has it | Date, Datetime(unit, tz), Duration(unit), Time | Since 0.3, mapped to Nanuq's Date and TimeOfDay and std/times DateTime and Duration. |
| Categorical, Enum | has it | Categorical, Enum(categories) | Since 0.3. A Nim enum is a Polars Enum. |
| List, Array | has it | List(inner), Array(inner, width) | Since 0.5, at any depth, from seq and array. |
| Struct | has it | Struct(fields) | Since 0.5, from Nim objects and named tuples. |
| Binary | has it | Binary | 0.6: columns from seq[seq[byte]], read back as seq[byte]. |
| Decimal | has it | Decimal(precision, scale) | 0.6: read and written as strings or floats (no decimal type in Nim's stdlib). |
| Object | not planned | Object (Python only) | Python objects in a column; no Nim counterpart in an Arrow array. |
| Casting | has it | Expr.cast(dtype, strict), DataFrame.cast, to_physical, shrink_dtype, reinterpret | cast by Nim type, DataType, mapping or selector; toPhysical; reinterpret in 0.6. shrinkDtype is missing. |
| Schema | has it | df.schema, lf.collect_schema, pl.Schema, dtypes | schema, collectSchema, dtypes. |
| Data type expressions | has it | pl.dtype_of, DataTypeExpr | 0.6: dtypeOf, innerDtype, display. |
Series
Since 0.4 a Series is a full column: built from Nim, taken out of a frame, and computed with through expressions.
| Feature group | 0.6.1 | Polars names | Notes |
|---|---|---|---|
| Construction from Nim | has it | pl.Series(name, values) | Every scalar, temporal and nested type, with Option[T] for nulls. |
| Inspection | has it | name, dtype, len, null_count, rename, alias, is_empty | isEmpty in 0.6. |
| Reading back | has it | to_list, item, __getitem__, head, tail, slice | toList(T), item(T), s[i]. |
| Arithmetic and comparison | has it | + - * / % **, comparisons, &, |, ~ | With literals and other Series; a length-1 Series broadcasts (0.5). |
| Aggregations | has it | sum, mean, min, max, median, std, var, quantile, n_unique, arg_min, ... | Return a one-value Series; item gives the scalar. |
| Transformations | has it | sort, unique, value_counts, fill_null, shift, cum_sum, cast, map_elements, ... | Every Expr method, evaluated through expressions. |
| Namespaces | has it | str, dt, list, arr, struct, cat, bin on Series | Since 0.5 (s.str, s.dt, s.list, ...); s.bin in 0.6. |
| Series in a frame | has it | df.get_column, df['a'], to_series, insert_column, replace_column | df["a"], getColumn, toSeries, withColumns(series). No in-place insert or replace: frames are immutable. |
| Scatter and set | has it | Series.scatter, Series.set | 0.6, returning a new Series. |
| Sortedness | has it | set_sorted, is_sorted, flags | 0.6: setSorted, isSorted. |
DataFrame construction and IO
Building frames and reading and writing files. Every format is compiled into the prebuilt library.
| Feature group | 0.6.1 | Polars names | Notes |
|---|---|---|---|
| From columns and records | has it | pl.DataFrame({...}), from_dict, from_records, from_dicts | newDataFrame(series...), the newDataFrame block syntax, toDataFrame(seq[T]) for objects and tuples. |
| Empty frames | has it | pl.DataFrame(schema=...), df.clear | 0.6: newDataFrame(schema) and clear (frames and LazyFrames). |
| CSV read | has it | read_csv: separator, has_header, skip_rows, n_rows, columns, new_columns, schema_overrides, null_values, quote_char, encoding, try_parse_dates, ... | 0.2 options; 0.6 adds quoteChar, encoding (Utf8Lossy), newColumns and commentPrefix. |
| CSV from a string or bytes | has it | read_csv(io.StringIO(...)), read_csv(bytes) | From a Nim Stream since 0.3. |
| CSV write | has it | write_csv: separator, include_header, quote_style, float_precision, null_value | |
| CSV scan (lazy) | has it | scan_csv | Files and globs, same options as readCsv. |
| Parquet | has it | read_parquet, scan_parquet, write_parquet, read_parquet_schema | Since 0.3; readParquetSchema and hivePartitioning in 0.6. |
| Arrow IPC / Feather | has it | read_ipc, scan_ipc, write_ipc, read_ipc_stream | Since 0.3; the IPC stream readers and writers in 0.6. |
| JSON and NDJSON | has it | read_json, write_json, read_ndjson, scan_ndjson, write_ndjson | Since 0.5, paths and streams. |
| Avro | missing | read_avro, write_avro | Not started. |
| Excel | has it | read_excel, write_excel | 0.6: readExcel, readExcelSheets, writeExcel, built on the pure-Rust crates calamine and rust_xlsxwriter compiled into the library. |
| OpenDocument | has it | read_ods | 0.6: readOds, through calamine like readExcel. |
| Databases | partly | read_database, read_database_uri, write_database | 0.6: optional module nanuq/database on db_connector, SQLite only. PostgreSQL and MySQL to follow. |
| Delta Lake, Iceberg, catalogs | not planned | scan_delta, write_delta, scan_iceberg, pl.Catalog | Python-only in Polars (deltalake, pyiceberg, Unity Catalog client). |
| Cloud storage | has it | scan_*('s3://...'), storage_options, credential providers | 0.6: storageOptions on scan, read, write and sink for CSV, Parquet, IPC and NDJSON (s3://, gs://, az://, https://). |
| Streaming sinks | has it | sink_parquet, sink_csv, sink_ipc, sink_ndjson, PartitionBy sinks | 0.6: to a path or partitioned by key, lazy = true for collectAll. |
| Display | has it | __repr__, _repr_html_, glimpse, describe | $, toHtml, glimpse, describe. |
DataFrame (eager)
The eager API. Most verbs run through the lazy engine, as in Polars itself.
| Feature group | 0.6.1 | Polars names | Notes |
|---|---|---|---|
| Shape and metadata | has it | shape, height, width, columns, dtypes, schema, estimated_size, is_empty, n_chunks | isEmpty in 0.6. nChunks is missing. |
| Head, tail, slice, sample | has it | head, tail, slice, limit, sample, gather_every | |
| Column access | has it | df['a'], get_column, item, row, rows, iter_rows, to_dicts, rows_by_key | Rows as Nim objects or tuples: row(i, T), rows(T), iterRows(T); rowsByKey (an OrderedTable) and getColumnIndex in 0.6. |
| Column edits | has it | with_columns, drop, rename, select, hstack, with_row_index, cast | |
| Row edits | has it | vstack, extend, filter, sort, unique, drop_nulls, drop_nans, fill_null, fill_nan, reverse, shift | Frame fillNan, dropNans, shift, append and remove in 0.6. |
| Frame aggregations | has it | sum, mean, min, max, median, std, var, quantile, product, null_count, n_unique | 0.6 adds every frame-wide aggregation. |
| Reshaping | has it | pivot, unpivot, explode, unnest, transpose, partition_by, to_dummies, unstack | pivot and unpivot in 0.4, explode and unnest in 0.5, unstack in 0.6. |
| Combining | partly | join, join_asof, join_where, concat, vstack, hstack, update, merge_sorted | See Joins. joinWhere and mergeSorted are new in 0.6; concat align is missing. |
| Equality and testing | has it | equals, polars.testing.assert_frame_equal, assert_series_equal | equals since 0.5; 0.6 adds the nanuq/testing module. |
| Apply and iterate | partly | map_rows, pipe, iter_columns, iter_slices, hash_rows | mapGroups and group iteration exist. mapRows is missing. pipe is not needed in Nim: any proc chains with the dot syntax. |
| SQL on frames | has it | df.sql, pl.sql, SQLContext | Since 0.5, with a sqlContext macro naming tables after variables. |
| Lazy conversion | has it | lazy, collect | |
| Copy and memory | has it | clone, rechunk, shrink_to_fit, clear, estimated_size | estimatedSize; rechunk, shrinkToFit and clear in 0.6. clone is not needed (frames are immutable). |
LazyFrame
The query plan API, with the same verbs as the eager frame plus execution, sinks and plans.
| Feature group | 0.6.1 | Polars names | Notes |
|---|---|---|---|
| Core verbs | has it | select, with_columns, filter, group_by.agg, sort, limit, drop_nulls, explain, collect | |
| More verbs | has it | drop, rename, slice, head, tail, reverse, unique, fill_null, fill_nan, with_row_index, cast, interpolate, explode, unnest, unpivot | LazyFrame shift, first, last and clear in 0.6. select_seq is missing. |
| Sort options | has it | sort(by, descending, nulls_last, maintain_order), top_k, bottom_k | |
| Joins | has it | join, join_asof, join_where, concat, merge_sorted | See Joins. mergeSorted in 0.6. |
| Grouping | has it | group_by(maintain_order), group_by_dynamic, rolling, shortcuts | 0.6 adds the group-by shortcuts. |
| Execution | has it | collect(engine), collect_all, collect_schema, profile, explain, cache, show_graph, optimization flags | 0.6 adds streaming collect, explainAll, cache and the optimization flags (QueryOptFlags, including common subplan and subexpression elimination). profile went away with the move to Polars 2, as in Python. show_graph is missing. |
| Streaming sinks | has it | sink_parquet, sink_csv, sink_ipc, sink_ndjson | 0.6. |
| Plan serialization | has it | serialize, deserialize (binary or JSON) | 0.6, for LazyFrames and expressions, to bytes or files. |
| Map and UDF | partly | map_batches, map_groups, pipe | Expr mapBatches and mapGroups since 0.5. LazyFrame.map_batches is missing. |
| SQL | has it | SQLContext.register(lf).execute(...) | Since 0.5. |
| Schema matching | has it | match_to_schema | 0.6: matchToSchema. |
GroupBy
Grouped aggregation on eager and lazy frames.
| Feature group | 0.6.1 | Polars names | Notes |
|---|---|---|---|
| group_by + agg | has it | group_by(*by, maintain_order).agg(*aggs) | Keys as names or expressions; on a DataFrame agg returns a DataFrame (0.4). |
| Shortcut aggregations | has it | len, count, first, last, sum, mean, median, min, max, n_unique, quantile | 0.6. |
| Per-group rows | has it | head(n), tail(n), map_groups, iterating groups, partition_by | partitionBy (0.4), mapGroups (0.5); head, tail and for key, part in df.groupBy(...) in 0.6. |
| Temporal grouping | has it | group_by_dynamic, rolling | Since 0.4; 0.6 takes the groupBy option as names or expressions. |
Joins and concatenation
Combining frames.
| Feature group | 0.6.1 | Polars names | Notes |
|---|---|---|---|
| Equi joins | has it | join(on / left_on / right_on, how, suffix, validate, nulls_equal, coalesce, maintain_order) | Since 0.2, inner to cross, semi and anti. |
| As-of joins | has it | join_asof(on, by, strategy, tolerance) | Since 0.4. |
| Inequality joins | has it | join_where(predicates) | 0.6. |
| Concatenation | has it | pl.concat(how=vertical|vertical_relaxed|horizontal|diagonal|diagonal_relaxed|align) | All but align. |
| Sorted merge, update | has it | merge_sorted, update | update since 0.5; mergeSorted in 0.6. |
Expressions: core
The expression DSL, the widest part of Polars and of Nanuq.
| Feature group | 0.6.1 | Polars names | Notes |
|---|---|---|---|
| Column references and selectors | has it | col(name/names/dtype/regex), all, exclude, nth, pl.len, selectors (cs.numeric, ...) | col.name shorthand, Nim typeclasses as dtype selectors, regex, selector operators; nth in 0.6 (an Expr, not a selector). |
| Literals | has it | lit(value), lit(series), lit(None) | Scalars, dates, lists, Series, nil. |
| Arithmetic | has it | + - * / // % **, neg, abs, floordiv, truediv, add, mul, ... | / is true division, div is floor; method spellings in 0.6. |
| Comparison and boolean | has it | comparisons, &, |, ~, xor, eq_missing, is_in, is_between, any, all | xor, eqMissing and neMissing in 0.6. |
| Conditionals | has it | when/then/otherwise | Plus a choose macro over if/elif/else. |
| Aggregations | has it | sum ... quantile, product, mode, arg_min, arg_max, null_count, approx_n_unique, implode, skew, kurtosis, entropy | aggGroups is missing. |
| Null and NaN handling | has it | is_null, fill_null(value|strategy), drop_nulls, is_nan, fill_nan, drop_nans, forward_fill, interpolate, coalesce | |
| Casting and types | has it | cast(dtype, strict), to_physical | |
| Naming | has it | alias, name.keep, prefix, suffix, map, to_lowercase, to_uppercase | |
| Ordering and selection | has it | sort, sort_by, arg_sort, head, tail, gather, top_k, search_sorted, unique, value_counts, is_duplicated, ... | Since 0.4. |
| Elementwise math | has it | round, floor, ceil, clip, exp, log, sqrt, cbrt, trigonometry, sign, dot | isClose and roundSigFigs in 0.6. |
| Cumulative and windowed | has it | cum_*, diff, pct_change, shift, rank, rolling_*, rolling_*_by, rolling_map, ewm_*, peaks, rle | rollingMap and cumulativeEval in 0.6. |
| Window functions | has it | over(partition_by, order_by, mapping_strategy) | |
| Horizontal and multi-column | has it | sum/min/max/mean/any/all_horizontal, concat_str, concat_list, struct, coalesce, fold, reduce, corr, cov | concatArr in 0.6. |
| Binning and counting | has it | cut, qcut, hist, value_counts, unique_counts | hist in 0.6. |
| Replacement | has it | replace, replace_strict | |
| Ranges and generation | has it | int_range(s), date_range(s), datetime_range(s), time_range, linear_space, repeat, arange | The plural ranges, arange and timeRange(s) in 0.6. |
| Meta | has it | meta.output_name, root_names, eq, pop, tree_format, serialize, ... | 0.6 completes the namespace. |
| Bitwise | has it | bitwise_and/or/xor, bitwise_count_ones, leading/trailing zeros | 0.6. |
| Repeat and nesting | has it | extend_constant, repeat_by, explode, implode, element() | Since 0.5. |
Expressions: strings
The str namespace. Patterns are Rust regexes, as in Polars.
| Feature group | 0.6.1 | Polars names | Notes |
|---|---|---|---|
| Length and case | has it | len_bytes, len_chars, to_uppercase, to_lowercase, to_titlecase, reverse | |
| Trimming and padding | has it | strip_chars, strip_prefix, strip_suffix, pad_start, pad_end, zfill | |
| Search | has it | contains, contains_any, starts_with, ends_with, find, count_matches, extract, extract_all, extract_groups, extract_many | |
| Replace and split | has it | replace, replace_all, replace_many, split, split_exact, splitn, slice, head, tail | Splits since 0.5. |
| Concatenation | has it | str.join, concat_str, format | |
| Conversion | has it | to_integer, to_decimal, to_date, to_datetime, strptime, json_decode, json_path_match, encode, normalize, escape_regex | 0.6 adds toInteger, toDecimal, encode, normalize and escapeRegex. |
Expressions: temporal
The dt namespace and temporal helpers, since 0.3.
| Feature group | 0.6.1 | Polars names | Notes |
|---|---|---|---|
| Components | has it | year, quarter, month, week, weekday, day, ordinal_day, hour ... nanosecond, date, time, timestamp, epoch | fromEpoch, century, millennium and epoch in 0.6. |
| Rounding and offsets | has it | truncate, round, offset_by, month_start, month_end, add_business_days, dst_offset | Business days (addBusinessDays, isBusinessDay) and dstOffset, baseUtcOffset in 0.6. |
| Time zones and units | has it | convert_time_zone, replace_time_zone, cast_time_unit, with_time_unit | withTimeUnit is missing. |
| Formatting and parsing | has it | strftime, to_string, strptime, to_date, to_datetime | |
| Durations | has it | total_days ... total_nanoseconds, duration arithmetic | |
| Ranges | has it | date_range(s), datetime_range(s), time_range, business_day_count | Plural ranges, timeRange and businessDayCount in 0.6. |
| Temporal grouping and joins | has it | group_by_dynamic, rolling, upsample, join_asof |
Expressions: list, array, struct, categorical, binary
Namespaces for nested and special types.
| Feature group | 0.6.1 | Polars names | Notes |
|---|---|---|---|
| List namespace | has it | list.len, aggregations, get, gather, slice, contains, unique, sort, join, eval(element()), set operations, to_struct, to_array, ... | Since 0.5. |
| Array namespace | has it | arr.sum ... get, join, sort, explode, to_list, to_struct, eval | Since 0.5. |
| Struct namespace | has it | struct.field, rename_fields, json_encode, unnest, with_fields, pl.struct | pl.struct is asStruct (struct is taken by the namespace). |
| Categorical namespace | has it | cat.get_categories, len_bytes, len_chars, starts_with, slice | Since 0.3. 0.6 drops cat.getCategories, as Polars 2 did. |
| Binary namespace | has it | bin.contains, starts_with, ends_with, encode, decode, size, slice, head, tail, get | 0.6. |
User-defined functions and plugins
Running Nim code inside Polars.
| Feature group | 0.6.1 | Polars names | Notes |
|---|---|---|---|
| Elementwise UDF | has it | Expr.map_elements, Series.map_elements | Since 0.5, 2 to 10 times faster than py-polars' map_elements; 0.6 reads numeric columns through a zero-copy view. |
| Batch UDF | partly | map_batches, map_groups, map_rows, LazyFrame.map_batches | mapBatches and mapGroups since 0.5; mapRows and LazyFrame.map_batches are missing. |
| Expression plugins | has it | register_plugin_function | registerPluginFunction since 0.6.1. Plugins written in Nim (see nanuq-more) or in plain Rust load directly; Rust plugins built with pyo3 need libpython preloaded. |
| Formula-style sugar | not planned | (none; Datamancer's f{}) | Dropped from 0.6: Polars expressions are expressive enough. Any Nim sugar would be its own design (BACKLOG). |
Interop with Nim and the ecosystem
Getting data in and out without files.
| Feature group | 0.6.1 | Polars names | Notes |
|---|---|---|---|
| Plain sequences | has it | to_list, Series(list) | |
| Datamancer | has it | to_pandas / from_pandas (nearest analogue) | nanuq/datamancer, copying. |
| Arraymancer | has it | to_numpy / from_numpy | Since 0.4, optional module nanuq/arraymancer. |
| Arrow C Data Interface | has it | to_arrow, from_arrow, __arrow_c_stream__ | 0.6: toArrow and fromArrow for Series and frames, zero-copy view(T) of numeric columns. |
| Row objects | has it | to_dicts, iter_rows(named=True) | Since 0.4, Nim objects and named tuples. |
| Plotting | partly | df.plot (Altair), matplotlib and plotly via pandas | Works through toSeq or toDatamancer with nim-plotly and ggplotnim. A df.plot namespace is in BACKLOG. |
Engine, configuration and distribution
How queries run, how output looks, how the library ships.
| Feature group | 0.6.1 | Polars names | Notes |
|---|---|---|---|
| Streaming engine | has it | collect(engine='streaming') | 0.6. |
| GPU engine | not planned | collect(engine='gpu') | Python-only (cuDF). |
| Config | has it | pl.Config: tbl_rows, tbl_cols, fmt_str_lengths, float_precision, ascii tables, set_random_seed | Setters, setConfig and the scoped withConfig; table formatting options in 0.6. |
| Threading | has it | pl.thread_pool_size, POLARS_MAX_THREADS | threadPoolSize in 0.6. |
| Error types | has it | ComputeError, ColumnNotFoundError, SchemaError, ... | PolarsError with Python's subtypes since 0.3. |
| Polars version | has it | py-polars 2.1.0 | 0.6 builds Polars from the py-2.1.0 git tag, the same commit py-polars 2.1.0 ships, so results match Python. |
| Library size and distribution | partly | (wheels on PyPI) | A static library of about 286 MB (53 MB download). Shared library and per-area Cargo features are in BACKLOG. |