Skip to content

.sel() returning comparer instead of .sel_df()? #30

Description

@Hendrik1987

How about a .sel() method that returns a copy of the original comparer with reduced data instead of:
https://github.com/DHI/fmskill/blob/aa1e47d7d0d4d8887faca763270a360d9c4d7da7/fmskill/compare.py#L354

That would allow calls like cc.sel().skill(), cc.sel().scatter() or in the future cc.sel().spatial_skill() without copying all the selection arguments to each method that allows selection.

The dataframe could be still returned via cc.sel().all_df(). Or maybe it should then become cc.sel().to_dataframe().

Further methods can easily be added, as long as they all return a comparer. Example: cc.sel().add_domains().skill(), where add_domains() could be a method to assign data points to sub-domains (#12).

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

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