Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Weird behaviour when performing sorted: on a DataFrame #127

Open
myroslavarm opened this issue Feb 10, 2020 · 0 comments
Open

Weird behaviour when performing sorted: on a DataFrame #127

myroslavarm opened this issue Feb 10, 2020 · 0 comments

Comments

@myroslavarm
Copy link

There seems to be a problem in DataFrame with using sorted: on it. I have read from a file using a Dataframe readFromCsv: method, where the file has two columns: key and value. At that point everything seems ok, and in Pharo I get a DataFrame with two columns. However, after performing value-based sorting like this:

data sorted: [ :a :b | (a at: 'value') > (b at: 'value') ]

as a result I get an Array, each element of which is a DataSeries mapping of (key->some_key value->some_value) which seems really weird and is undesirable.

I'm attaching a screenshot to better show the problem:

image

Even if this is not a bug, this still seems like an overly complicated representation of the data.

@olekscode olekscode changed the title Weird behaviour when performing sorted: on a DataFrame Implement a Spec UI that would display DataFrame as a table Jul 26, 2021
@olekscode olekscode changed the title Implement a Spec UI that would display DataFrame as a table Weird behaviour when performing sorted: on a DataFrame Jul 26, 2021
@olekscode olekscode added this to the v3.0 milestone Jul 26, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants