Skip to content

v0.5.2

Compare
Choose a tag to compare
@github-actions github-actions released this 01 Mar 00:48
· 473 commits to main since this release
b371361

Added

  • Add across and comprehensions to Explorer.Query. These features allow a
    more flexible and elegant way to work with multiple columns at once. Example:

    iris = Explorer.Datasets.iris()
    Explorer.DataFrame.mutate(iris,
     for col <- across(["sepal_width", "sepal_length", "petal_length", "petal_width"]) do
       {col.name, (col - mean(col)) / variance(col)}
     end
    )

    See the Explorer.Query documentation for further details.

  • Add support for regexes to select columns of a dataframe. Example:

    df = Explorer.Datasets.wine()
    df[~r/(class|hue)/]
  • Add the :max_rows and :columns options to Explorer.DataFrame.from_parquet/2. This mirrors
    the from_csv/2 function.

  • Allow Explorer.Series functions that accept floats to work with :nan, :infinity
    and :neg_infinity values.

  • Add Explorer.DataFrame.shuffle/2 and Explorer.Series.shuffle/2.

  • Add support for a list of filters in Explorer.DataFrame.filter/2. These filters are
    joined as and expressions.

Fixed

  • Add is_integer/1 guard to Explorer.Series.shift/2.
  • Raise if series sizes do not match for binary operations.

Changed

  • Rename the option :replacement to :replace for Explorer.DataFrame.sample/3 and
    Explorer.Series.sample/3.

  • Change the default behaviour of sampling to not shuffle by default. A new option
    named :shuffle was added to control that.

Pull requests

  • Allows Series functions to receive nan, infinity, and neg_infinity values by @Jhonatannunessilva in #512
  • Remove Elixir 1.13 from CI workflows by @philss in #513
  • Allow Series.pow/2 to receive float series on both sides and negative base by @Jhonatannunessilva in #514
  • Add DF.shuffle/2 and Series.shuffle/2 by @philss in #517
  • Add :name field to Series struct by @philss in #518
  • add max_rows and columns options to from_parquet by @mlineen in #510
  • Change Series "concat" callback to be of arity 1 by @philss in #522
  • Add integer typecheck guard to Series.shift by @blutack in #524
  • Add support for a list of filters in DF.filter/2 by @philss in #525
  • Prepare for v0.5.2 release by @philss in #526

New Contributors

Full diff: v0.5.1...v0.5.2
Official Changelog: https://hexdocs.pm/explorer/changelog.html

Checksums

e55c1e04cdd180a387c9c5dca9924df8c0aaaeaa08f6387ff57ce12be4fbfb14  explorer-v0.5.2-nif-2.15-x86_64-pc-windows-gnu.dll.tar.gz
9be21cefd10a2f6a3e9dd28ab55cca19846fb11212422e7e58b188a714d7136a  explorer-v0.5.2-nif-2.15-x86_64-pc-windows-msvc.dll.tar.gz
e3889bd38d4c02854b2e561a8b82637b9b9691319e92c5efcd7dcd52fcf8e74e  explorer-v0.5.2-nif-2.16-x86_64-pc-windows-gnu.dll.tar.gz
aee38db4cf0cadd0b36fa2c8ab31224ef75fb5179f4fb85ba5f8cf376ab17d07  explorer-v0.5.2-nif-2.16-x86_64-pc-windows-msvc.dll.tar.gz
b5c3485cd7eca956bd9972ccde340d4848898443924831fda084c948c2c301ac  libexplorer-v0.5.2-nif-2.15-aarch64-apple-darwin.so.tar.gz
2ab5ebb320398e6cab0e717dd09c4003ad6e61ef1c4582fdb2e7951fa533b18a  libexplorer-v0.5.2-nif-2.15-aarch64-unknown-linux-gnu.so.tar.gz
805599cb4170e9d5c966a98f9c3373e6ee550c70c1bf7f12d02ea7917b6946d3  libexplorer-v0.5.2-nif-2.15-aarch64-unknown-linux-musl.so.tar.gz
c3af28ba4bad641a8bae75a2f4ea1ba38f05047d9597b7bfbbd243246e55be10  libexplorer-v0.5.2-nif-2.15-arm-unknown-linux-gnueabihf.so.tar.gz
6972537c193d7cedc231c15a8b64d62a4918f8d36bba80eb512d2528d8a37620  libexplorer-v0.5.2-nif-2.15-riscv64gc-unknown-linux-gnu.so.tar.gz
dcd591d77d79b9122be2e3ba3056a9e7bf2354ac4ae2b74964f8f1e102f906c7  libexplorer-v0.5.2-nif-2.15-x86_64-apple-darwin.so.tar.gz
140b007df6c7f90186a2807b3a05664c041a61e5ad8ec90b7175efad50f8d9cd  libexplorer-v0.5.2-nif-2.15-x86_64-unknown-linux-gnu.so.tar.gz
34e6f3c00e0fc39de62419bf70f8eda868a67636480dd7293dabdfffbb8ee06f  libexplorer-v0.5.2-nif-2.15-x86_64-unknown-linux-musl.so.tar.gz
c357827eb7bb05f6ce752c66ee8cf15b184d98a646b78fd1316570d803d20848  libexplorer-v0.5.2-nif-2.16-aarch64-apple-darwin.so.tar.gz
281533c1eb85abea4e20629a55e05f4c3e032a194752c6e4aa2e01436d58e676  libexplorer-v0.5.2-nif-2.16-aarch64-unknown-linux-gnu.so.tar.gz
d7e20382151c812cc778fb751d1043d919a320a4f4c7e393a9db5f09597e9a41  libexplorer-v0.5.2-nif-2.16-aarch64-unknown-linux-musl.so.tar.gz
3516bd1dd46469a294ec654d67ddd5d2a8bcc766fafb903d4248c3462dec9d71  libexplorer-v0.5.2-nif-2.16-arm-unknown-linux-gnueabihf.so.tar.gz
9ec283f1ae6e4be6e58acae68045fe8c4b755d0486a813a0cc4ea875368e58a5  libexplorer-v0.5.2-nif-2.16-riscv64gc-unknown-linux-gnu.so.tar.gz
83407a55ae93627041f40269eb162fee7aa9c2bc5d4d9aeae40bd84f2c1fadd5  libexplorer-v0.5.2-nif-2.16-x86_64-apple-darwin.so.tar.gz
530fe3b19bb27e59b28215c1d87c0b79323cccc2c6dc64e83ddb6d4511e894db  libexplorer-v0.5.2-nif-2.16-x86_64-unknown-linux-gnu.so.tar.gz
2e7600179613880688daecd029ca8c08a7cea0a4d4f2bea273946ea632a38059  libexplorer-v0.5.2-nif-2.16-x86_64-unknown-linux-musl.so.tar.gz