question

chrisxfire avatar image
0 Votes"
chrisxfire asked chrisxfire commented

Why is this ElementwiseGreaterThanOrEqual() method call resulting in a "Specified method is not supported" error?

Assuming this code:

 DataFrame df = new();
    
 df.Columns.Add(new PrimitiveDataFrameColumn<DateTimeOffset>("Started", 3));
            
 df[0, 0] = DateTimeOffset.Parse("03-28-2022");
 df[1, 0] = DateTimeOffset.Parse("03-21-2022");
 df[2, 0] = DateTimeOffset.Parse("03-14-2022");
            
 df.Filter(
     df.Columns["Started"].ElementwiseGreaterThanOrEqual(
         DateTimeOffset.Parse("03-22-2022")));

Microsoft.Data.Analysis | C# 10 | .NET 6

Given this code:

DataFrame df = new();

df.Columns.Add(new PrimitiveDataFrameColumn<DateTimeOffset>("Started", 3));

df[0, 0] = DateTimeOffset.Parse("03-28-2022");
df[1, 0] = DateTimeOffset.Parse("03-21-2022");
df[2, 0] = DateTimeOffset.Parse("03-14-2022");

df.Filter(
df.Columns["Started"].ElementwiseGreaterThanOrEqual(
DateTimeOffset.Parse("03-22-2022")));


The call to ElementwiseGreaterThanOrEqual() throws this error:

"Unhandled exception. System.NotSupportedException: Specified method is not supported. at Microsoft.Data.Analysis.PrimitiveDataFrameColumn1.ElementwiseGreaterThanOrEqualImplementation[U](U value) at Microsoft.Data.Analysis.PrimitiveDataFrameColumn1.ElementwiseGreaterThanOrEqual[U](U value)"

I've reviewed the docs and this example with no luck.

What am I missing?




dotnet-csharpdotnet-ml-big-data
· 2
5 |1600 characters needed characters left characters exceeded

Up to 10 attachments (including images) can be used with a maximum of 3.0 MiB each and 30.0 MiB total.

Did you notice this is a prerelease?

Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.

Things are in flux and most likely Specified method is not supported is exactly that and with the above you can't use it.

0 Votes 0 ·
chrisxfire avatar image chrisxfire karenpayneoregon ·

Yes, but the method exists in the documentation and in the source code, which is why I'm expecting it to work.

0 Votes 0 ·

0 Answers