Skip to content

tidypolars 0.6.0

Compare
Choose a tag to compare
@etiennebacher etiennebacher released this 04 Mar 08:47

tidypolars requires polars >= 0.15.0.

Breaking changes and deprecations

  • as_polars() is deprecated and will be removed in 0.7.0. Use as_polars_lf()
    or as_polars_df() instead.

  • as_polars() doesn't have an argument with_string_cache anymore. When set
    to TRUE, this enabled the string cache globally, which could lead to
    undesirable side effects.

  • to_r() is deprecated and will be removed in 0.7.0. Use as.data.frame() or
    as_tibble() instead. This used to silently return a LazyFrame if the
    input was LazyFrame. It now automatically collects the LazyFrame (#88).

  • pull() nows automatically collects input LazyFrame (#89).

New features

  • Add support for argument .keep in mutate() (#80).

  • Add support for group_vars() and group_keys() (#81).

  • Experimental support of rowwise(). For now, this is limited to a few
    functions: mean(), median(), min(), max(), sum(), all(), any().
    rowwise() and group_by() cannot be used at the same time (#40).

  • All functions that return a polars Data/LazyFrame now add the class
    "tidypolars" to the output (#86).

  • Support which.min(), which.max(), dplyr::n().

  • Support .data[[ and .env[[ in addition to .data$ and .env$. Better
    error messages when the objects specified in .data or .env don't exist.

Bug fixes

  • pull() now errors when var is of length > 1.