Skip to content

tidypolars 0.5.0

Compare
Choose a tag to compare
@etiennebacher etiennebacher released this 30 Dec 18:10

tidypolars requires polars >= 0.12.0.

Breaking changes

  • across() now errors if the argument .cols is not provided (either named or
    unnamed). This behavior was deprecated in dplyr 1.1.0.

  • It is no longer possible to use ! in arrange() to sort by decreasing order,
    for compatibility with dplyr::arrange(). Use - or desc() instead.

New features

  • summarize() now works on ungrouped data and returns a 1-row output.

  • It is now possible to use desc(x1) in arrange() to sort in decreasing
    order of x1 (this is equivalent to -x1).

  • Add support for argument names_prefix in pivot_longer().

  • Add support for arguments names_prefix and names_sep in pivot_wider().

  • Add support for tidyr::uncount().

  • All *_join() functions now work when by is a specification created by
    dplyr::join_by(). Notice that this is limited to equality joins for now.

  • You can now use the "embrace" operator {{ }} to pass unquoted column names
    (among other things) as arguments of custom functions. See the "Programming
    with dplyr" vignette

    for some examples.

  • bind_cols_polars() now works with two LazyFrames, but not more.

  • Add support for argument .name_repair in bind_cols_polars() (#74).

  • Support for .env$ and .data$ pronouns in expressions of filter(),
    mutate() and summarize().

  • Support named vector in the argument pattern of str_replace_all(), where
    names are patterns and values are replacements.

  • Using %in% for factor variables doesn't require enabling the string cache
    anymore.

Bug fixes

  • summarize() no longer errors when across(everything(), ...) is used with
    .by.

  • All *_join() functions no longer error when a named vector is provided in
    the argument by.

  • Expressions with values only are not named "literal" anymore.

Misc

  • Simplify the procedure to support new functions.