Skip to content

Add argmax to DataSeries #239

@olekscode

Description

@olekscode

This method should return the key at which the element of DataSeries is the biggest.
For example:

series := DataSeries
     withKeys: #(2017 2018 2019 2020)
     values: #(13 42 25 15).

series argmax. "2018"

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions