Skip to content

Releases: pola-rs/r-polars

v0.10.1

11 Nov 17:43
Compare
Choose a tag to compare

What's changed

  • The argument quote_style in $write_csv() and $sink_csv() can now take
    the value "never" (#483).
  • pl$DataFrame() now errors if the variables specified in schema do not exist
    in the data (#486).
  • S3 methods for base R functions are well documented (#494).
  • A bug that failing pl$SQLContext()$register() without load the package was fixed (#496).

lib-v0.34.1

11 Nov 16:39
cd95661
Compare
Choose a tag to compare
lib-v0.34.1 Pre-release
Pre-release
docs(NEWS): tweak news about recent updates (#498)

v0.10.0

08 Nov 16:06
Compare
Choose a tag to compare

BREAKING CHANGES DUE TO RUST-POLARS UPDATE

  • rust-polars is updated to 2023-10-25 unreleased version (#442)
    • New subnamespace "name" that contains methods $prefix(), $suffix()
      keep() (renamed from keep_name()) and map() (renamed from map_alias()).
    • $dt$round() gains an argument ambiguous.
    • The following methods now accept an Expr as input: $top_k(), $bottom_k(),
      $list$join(), $str$strip_chars(), $str$strip_chars_start(),
      $str$strip_chars_end(), $str$split_exact().
    • The following methods were renamed:
      • $str$n_chars() -> $str$len_chars()
      • $str$lengths() -> $str$len_bytes()
      • $str$ljust() -> $str$pad_end()
      • $str$rjust() -> $str$pad_start()
    • $concat() with how = "diagonal" now accepts an argument to_supertypes
      to automatically convert concatenated columns to the same type.
    • pl$enable_string_cache() doesn't take any argument anymore. The string cache
      can now be disabled with pl$disable_string_cache().
    • $scan_parquet() gains an argument hive_partitioning.
    • $meta$tree_format() has a better formatted output.

Breaking changes

  • $scan_csv() and $read_csv() now match more closely the Python-Polars API (#455):
    • sep is renamed separator, overwrite_dtypes is renamed dtypes,
      parse_dates is renamed try_parse_dates.
    • new arguments rechunk, eol_char, raise_if_empty, truncate_ragged_lines
    • path can now be a vector of characters indicating several paths to CSV files.
      This only works if all CSV files have the same schema.

What's changed

  • New class RPolarsSQLContext and its methods to perform SQL queries on DataFrame-
    like objects. To use this feature, needs to build Rust library with full features
    (#457).
  • New methods $peak_min() and $peak_max() to find local minima and maxima in
    an Expr (#462).
  • New methods $read_ndjson() and $scan_ndjson() (#471).
  • New method $with_context() for LazyFrame to have access to columns from
    other Data/LazyFrames during the computation.

lib-v0.34.0

08 Nov 14:42
8646a60
Compare
Choose a tag to compare
lib-v0.34.0 Pre-release
Pre-release
chore: fix typo and revert Rd file incorrect change (#476)

v0.9.0

29 Oct 14:36
Compare
Choose a tag to compare

BREAKING CHANGES DUE TO RUST-POLARS UPDATE

  • rust-polars is updated to 0.33.2 (#417)
    • In all date-time related methods, the argument use_earliest is replaced by ambiguous.
    • In $sample() and $shuffle(), the argument fixed_seed is removed.
    • In $value_counts(), the arguments multithreaded and sort
      (sometimes called sorted) have been swapped and renamed sort and parallel.
    • $str$count_match() gains a literal argument.
    • $arg_min() doesn't consider NA as the minimum anymore (this was already the behavior of $min()).
    • Using $is_in() with NA on both sides now returns NA and not TRUE anymore.
    • Argument pattern of $str$count_matches() can now use expressions.
    • Needs Rust toolchain nightly-2023-08-26 for to build with full features.
  • Rename R functions to match rust-polars
    • $str$count_match() -> $str$count_matches() (#417)
    • $str$strip() -> $str$strip_chars() (#417)
    • $str$lstrip() -> $str$strip_chars_start() (#417)
    • $str$rstrip() -> $str$strip_chars_end() (#417)
    • $groupby() is renamed $group_by(). (#427)

Breaking changes

  • Remove some deprecated methods.
    • Method $with_column() has been removed (it was deprecated since 0.8.0).
      Use $with_columns() instead (#402).
    • Subnamespace $arr has been removed (it was deprecated since 0.8.1).
      Use $list instead (#402).
  • Setting and getting polars options is now made with pl$options,
    pl$set_options() and pl$reset_options() (#384).

What's changed

  • Bump supported R version to 4.2 or later (#435).
  • pl$concat() now also supports Series, Expr and LazyFrame (#407).
  • New method $unnest() for LazyFrame (#397).
  • New method $sample() for DataFrame (#399).
  • New method $meta$tree_format() to display an Expr as a tree (#401).
  • New argument schema in pl$DataFrame() and pl$LazyFrame() to override the
    automatic type detection (#385).
  • Fix bug when calling R from polars via e.g. $map() where query would not
    complete in one edge case (#409).
  • New method $cat$get_categories() to list unique values of categorical
    variables (#412).
  • New methods $fold() and $reduce() to apply an R function rowwise (#403).
  • New function pl$raw_list and class rpolars_raw_list a list of R Raw's, where missing is
    encoded as NULL to aid conversion to polars binary Series. Support back and forth conversion
    from polars binary literal and Series to R raw (#417).
  • New method $write_csv() for DataFrame (#414).
  • New method $sink_csv() for LazyFrame (#432).
  • New method $dt$time() to extract the time from a datetime variable (#428).
  • Method $profile() gains optimization arguments and plot-related arguments (#429).
  • New method pl$read_parquet() that is a shortcut for pl$scan_parquet()$collect() (#434).
  • Rename $str$str_explode() to $str$explode() (#436).
  • New method $transpose() for DataFrame (#440).
  • New argument eager of LazyFrame$set_optimization_toggle() (#439).
  • {polars} can now be installed with "R source package with Rust library binary",
    by a mechanism copied from the prqlr package.
    Sys.setenv(NOT_CRAN = "true")
    install.packages("polars", repos = "https://rpolars.r-universe.dev")
    The URL and SHA256 hash of the available binaries are recorded in tools/lib-sums.tsv.
    (#435, #448, #450, #451)

lib-v0.33.0

29 Oct 09:26
8c270a4
Compare
Choose a tag to compare
lib-v0.33.0 Pre-release
Pre-release
ci: add release-lib workflow to upload binary libraries to GitHub rel…

v0.8.1

24 Sep 08:10
Compare
Choose a tag to compare
  • New string method to_titlecase() (#371).
  • Although stated in news for PR (#334) strip = true was not actually set for the "release-optimized" compilation profile. Now it is, but the binary sizes seems unchanged (#377).
  • New vignette on best practices to improve polars performance (#188).
  • Subnamespace name "arr" as in <Expr>$arr$ & <Series>$arr$ is deprecated in favor of "list". Finally at polars 0.9.0 the "arr" will be removed (#375).

v0.8.0

03 Sep 10:30
Compare
Choose a tag to compare

What's Changed

New Contributors

Full Changelog: v0.7.0...v0.8.0

v0.7.0

25 Jul 22:18
d53ac86
Compare
Choose a tag to compare

What's Changed

Full Changelog: v0.6.1...v0.7.0

v0.6.1

07 Jun 21:31
ddf5510
Compare
Choose a tag to compare

What's Changed

New Contributors

Full Changelog: v0.6.0...v0.6.1