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

Added Keyed Return for SeriesStats #115

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

ilganeli
Copy link
Contributor

SeriesStats would drop the key for the series when returning. Including this key can be useful for subsequent joins.

@@ -227,7 +227,15 @@ class TimeSeriesRDD[K](val index: DateTimeIndex, parent: RDD[(K, Vector)])
* Gets stats like min, max, mean, and standard deviation for each time series.
*/
def seriesStats(): RDD[StatCounter] = {
map(kt => new StatCounter(kt._2.valuesIterator))
map(kt => new StatCounter(kt._2.valuesIterator))
Copy link
Owner

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thinking about it now, I think it actually makes sense to include the keys with the stats in all cases, i.e. to just change the return type of seriesStats.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants