dotnet / dotnet/machinelearning

DataFrame.Clone should have an overload that takes an IEnumerable<int>

Open
#5,703 1 comment 0 reactions 0 assignees View on GitHub
area-DataFrame
Dominant language
C#
Stars
9.4k
Forks
2k
Avg merge
2d 20h
Merged PRs (30d)
11

Description

As per the review comments in dotnet/corefxlab#2939 , DataFrame.Clone() should have an overload that takes an IEnumerable.

As things currently stand a column must be created first then used for the clone to map the indices.

Example below:
```
List arr = new List(){1, 2, 3};
PrimitiveDataFrameColumn colA = new PrimitiveDataFrameColumn("indices", segment);
DataFrame res = df.Clone(colA);
DataFrame res2 = df.Clone(arr); // arr should be accepted as an overload, currently it is not.
```

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.