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

Implement length for all enumerables #81

Open
davidanthoff opened this issue Feb 1, 2017 · 0 comments
Open

Implement length for all enumerables #81

davidanthoff opened this issue Feb 1, 2017 · 0 comments
Milestone

Comments

@davidanthoff
Copy link
Member

This example doesn't work without a collect for the sub-query currently, and that is annoying:

rts = @from row in results begin
    @where row.trial >= 1
    @group row by (row.sid, row.trial) into trial
    @let filtered_trial = @where(trial, i -> i.code in ["stream_1", "stream_2"])
    @where length(filtered_trial)>0
    @select {
        rt = last(filtered_trial).time - first(filtered_trial).time,
        response = last(filtered_trial).code,
        trial_length = last(trial).time - first(trial).time
    }
    @collect DataFrame
end
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

1 participant