explorer icon indicating copy to clipboard operation
explorer copied to clipboard

Random Sorting With Arrange

Open joeybellerose opened this issue 3 years ago • 2 comments

I'm attempting to sort a grouped data frame, but I appear to be getting different sorting results each time I run the code as shown in the two examples below.

I am using Elixir version 1.13.4 and my dependencies are shown below:

Mix.install([
  {:explorer, "~> 0.3.1"},
  {:nx, "~> 0.3.0"},
  {:vega_lite, "~> 0.1.6"},
  {:kino_vega_lite, "~> 0.1.3"}
])

What am I doing wrong?

Example 1 CleanShot 2022-09-10 at 10 29 19

Example 2

CleanShot 2022-09-10 at 10 30 32

Thanks in advance for the help!

joeybellerose avatar Sep 10 '22 14:09 joeybellerose

Hey @joeybellerose 👋

The behavior is fixed in a branch I'm working on. The sorting is going to be stable inside groups.

I will let you know when it's fixed. :)

philss avatar Sep 10 '22 14:09 philss

@philss Thanks so much!

joeybellerose avatar Sep 10 '22 19:09 joeybellerose

@joeybellerose Sorry for the delay :grimacing:

Please check the version of main. It is fixed there, and should be available in the next release. Thanks for the report!

philss avatar Nov 01 '22 19:11 philss