-
Notifications
You must be signed in to change notification settings - Fork 69
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
Merge TimeSeriesQueries.jl into TimeSeries #288
Comments
When #292 will be closed It should be possible to use https://github.com/davidanthoff/Query.jl |
I don't think so but if you find Query.jl supports TimeArrays please advise with an example. |
You can now query using Query, TimeSeries, DataFrames
dates = collect(Date(1999,1,1):Date(2000,12,31))
mytime = TimeArray(dates, rand(length(dates)))
df = @from i in mytime begin
@group i.value by year(i.timestamp) into g
@select {Year=g.key, Average=mean(g)}
@collect DataFrame
end If your final ta = @from i in mytime begin
@group i.value by year(i.timestamp) into g
@select {timestamp=Date(g.key,1,1), average=mean(g)}
@collect TimeArray
end I'll also add another way to materialize into a All of this comes as a side-effect of IterableTables.jl, which enables a whole bunch of other scenarios for Any feedback is welcome! |
Oh, one last thing: the implementation for the |
The TimeSeriesQueries unregistered package provides SQL-like query syntax of TimeSeries TimeArray objects. Passing tests and documentation are complete.
Here is a quick screencast
The text was updated successfully, but these errors were encountered: