Releases: pola-rs/r-polars
Releases · pola-rs/r-polars
R Polars 1.12.0
lib-v1.12.0-rc.1
Immutable
release. Only release title and notes can be modified.
ci(release-lib): avoid installing wrong binary from p3m (#1794) Co-authored-by: Copilot Autofix powered by AI <175728472+Copilot@users.noreply.github.com>
R Polars 1.11.0
Immutable
release. Only release title and notes can be modified.
This is an update that corresponds to Python Polars 1.40.1.
New features
pl$row_index(), a shortcut forpl$int_range(pl$len())(#1770).polars_code_completion_activate()andpolars_code_completion_deactivate()to
enable Polars-specific code completion. This only works in RStudio for now (#1768).<expr>$arr$any(),<expr>$arr$all(),<expr>$list$any(), and<expr>$list$all()
gain an argumentignore_nulls(#1778).<dataframe>$merge_sorted()and<lazyframe>$merge_sorted()gain an argument
maintain_order(#1778).
Other changes
- Bumped
rlangdependency to be >= 1.2.0.
lib-v1.11.0-rc.1
Immutable
release. Only release title and notes can be modified.
ci(release-lib): reduce ARM Linux build memory pressure in release-li…
R Polars 1.10.0
Immutable
release. Only release title and notes can be modified.
This is an update that corresponds to Python Polars 1.39.3.
New features
<expr>$implode()gains themaintain_orderargument to control whether
the order of elements within each group is preserved (#1751).<expr>$set_sorted()gains thenulls_lastargument to specify the
position of null values in the sorted order (#1751).<expr>$dt$add_business_days()now accepts a Polars expression for
theholidaysargument, in addition to R Date vectors (#1751).$pivot()gains thecolumn_namingargument to control how pivoted
column names are constructed (#1751).- New
<expr>$truncate()(#1755). <expr>$round()can now takemode = "to_zero"(#1755).pl$scan_csv()andpl$read_csv()gain themissing_columnsargument to
control behavior when some CSV files have missing columns compared to the
expected schema (#1754).
Bug fixes
$unpivot()now properly checks for duplicate column names when using
customvalue_nameorvariable_name
(pola-rs/polars#26606, #1751).
lib-v1.10.0-rc.2
Immutable
release. Only release title and notes can be modified.
chore: bump lib version (#1758)
R Polars 1.9.0
Immutable
release. Only release title and notes can be modified.
This is an update that corresponds to Python Polars 1.38.1.
Deprecations
- The
retriesargument in scan/read and sink/write functions is deprecated (#1726).
Usemax_retriesinstorage_optionsinstead. - The
file_cache_ttlargument inpl$scan_csv(),pl$scan_ipc(),pl$scan_ndjson(), and theirread_*counterparts is deprecated (#1726).
Usefile_cache_ttlinstorage_optionsinstead. <expr>$flatten()is deprecated. Use<expr>$list$explode()instead (#1726).
New features
cs$by_name()gains theexpand_patternsargument. When set toTRUE, regex patterns (^...$) and wildcards (*) in column names are expanded (pola-rs/polars#26437, #1726).- New
<expr>$bin$get()to extract a specific byte from a binary value (#1731). <expr>$str$split()has two new argumentsliteralandstrict(#1730).- New
pl$scan_lines()andpl$read_lines()to read one or several files into a single column (#1732). $sink_ndjson(),$write_ndjson(),$sink_csv(), and$write_csv()can now export compressed files (#1733, #1735).
Bug fixes
<expr>$rolling_rank_by()now requires theclosedargument to be"right"or"both".
Previously,"left"and"none"were silently accepted but could produce incorrect results (pola-rs/polars#26287, #1726).
Other changes
- The
per_partition_sort_byargument of the deprecated partition classes (pl$PartitionByKey(),pl$PartitionMaxSize(),pl$PartitionParted()) has been removed.
This feature was removed from upstream Polars (pola-rs/polars#26130, #1726).
lib-v1.9.0-rc.1
Immutable
release. Only release title and notes can be modified.
feat: Add support for compressed output in `write/sink_csv()` (#1735)
R Polars 1.8.0
Immutable
release. Only release title and notes can be modified.
This is an update that corresponds to Python Polars 1.37.1.
Deprecations
- The experimental partitioning scheme classes (constructed with
pl$PartitionByKey(),pl$PartitionMaxSize(), orpl$PartitionParted()) are deprecated in favor of the new experimental partition by class, constructed withpl$PartitionBy()(#1716).
New features
- New S3 method
nanoarrow::as_nanoarrow_array_stream(<lazyframe>)to export a LazyFrame via the Arrow C stream interface (pola-rs/polars#25918, #1709). <expr>$min_by()and<expr>$max_by()to get the value of a column ordered by another column (#1715).
lib-v1.7.1-rc.1
Immutable
release. Only release title and notes can be modified.
docs: Mention that partitioning functions also work with `write_*()` …