Added
-
Add more temporal arithmetic operations. This change makes possible
to mix some datatypes, likedate
,duration
and scalar types like
integers
andfloats
.The following operations are possible now:
date - date
date + duration
date - duration
duration + date
duration * integer
duration * float
duration / integer
duration / float
integer * duration
float * duration
-
Support lazy dataframes on
Explorer.DataFrame.print/2
. -
Add support for strings as the "indexes" of
Explorer.Series.categorise/2
.
This makes possible to categorise a string series with a categories series. -
Introduce
cond/1
support in queries, which enables multi-clause conditions.
Example of usage:iex> df = DF.new(a: [10, 4, 6]) iex> DF.mutate(df, ...> b: ...> cond do ...> a > 9 -> "Exceptional" ...> a > 5 -> "Passed" ...> true -> "Failed" ...> end ...> ) #Explorer.DataFrame< Polars[3 x 2] a integer [10, 4, 6] b string ["Exceptional", "Failed", "Passed"] >
-
Similar to
cond/1
, this version also introduces support for theif/2
andunless/2
macros inside queries. -
Allow the usage of scalar booleans inside queries.
-
Add
Explorer.Series.replace/3
for string series.
This enables the replacement of patterns inside string series.
Deprecated
- Deprecate
Explorer.DataFrame.to_lazy/1
in favor of justlazy/1
.
Fixed
-
Fix the
Explorer.Series.in/2
function to work with series of the
:category
dtype.Now, if both series shares the same categories, we can compare them.
To make sure that a categorical series shares the same categories from
another series, you must create that series using the
Explorer.Series.categorise/2
function. -
Display the dtype of duration series correctly in
Explorer.DataFrame.print/2
.
Pull requests
- Additional temporal arithmetic by @billylanchantin in #696
- Support duration-related Polars fixes in exprs by @billylanchantin in #701
- Deprecate to_lazy as lazy by @josevalim in #700
- Series callbacks accept
out_dtype
as input by @billylanchantin in #703 - Fix
Series.in/2
to work with series of the:category
dtype by @philss in #704 - Display dtype correctly in print by @billylanchantin in #707
- Introduce
cond/1
support in queries by @sasikumar87 in #706 - Allow scalar boolean support in queries by @sasikumar87 in #708
- Introduce replace/3 for string series by @sasikumar87 in #709
- Doc: fix table/2 reference to print/2 by @clm-a in #711
- Update changelog with changes in v0.7.1 by @philss in #712
New Contributors
Full Changelog: v0.7.0...v0.7.1
Official Changelog: https://github.com/elixir-explorer/explorer/blob/main/CHANGELOG.md
SHA256 of compiled artifacts
c723d2185d3d908004d1a88c4a565a2c339598ad61388265415a55a54e1f786a explorer-v0.7.1-nif-2.15-x86_64-pc-windows-gnu.dll.tar.gz
9d5a87706ab5334d13325f8c5ec753dddf700a46a78a42678f596663cc3b4aca explorer-v0.7.1-nif-2.15-x86_64-pc-windows-msvc.dll.tar.gz
e95fa8e787161aab1e3080c59a8fcb3b8e11e8346c4311a64126eb9acb869c5a libexplorer-v0.7.1-nif-2.15-aarch64-apple-darwin.so.tar.gz
3a7d40cabee2f8036ef8bf2ed85b39479fe20d77bb05962f490c979e156671b1 libexplorer-v0.7.1-nif-2.15-aarch64-unknown-linux-gnu.so.tar.gz
4481e50238cbe251ce5d5a89da50a8b6cb05d772098a9404a5067c605a8d49bb libexplorer-v0.7.1-nif-2.15-aarch64-unknown-linux-musl.so.tar.gz
b4760dac6ab2d57f906957de0188bdff2b35595d8a095236f292119a61a85db1 libexplorer-v0.7.1-nif-2.15-riscv64gc-unknown-linux-gnu.so.tar.gz
b37e8ba2fe028dc1c34f54006f467b0493d38d52d2166f0438f29eb7d094b180 libexplorer-v0.7.1-nif-2.15-x86_64-apple-darwin.so.tar.gz
bab7426c2acd61604a793e950b55e8823077bfb6b3a609f3ee6025332170f87f libexplorer-v0.7.1-nif-2.15-x86_64-unknown-freebsd.so.tar.gz
b3e3c8092da7cbdaf0078f556f61f3e6c68ebfb04a2f3f284a99b99f57310024 libexplorer-v0.7.1-nif-2.15-x86_64-unknown-linux-gnu.so.tar.gz
b0cfae969888be5a34079084c2a9b58c056578834526c3c8db41d33fec6a8407 libexplorer-v0.7.1-nif-2.15-x86_64-unknown-linux-musl.so.tar.gz