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

Chris X 41 Reputation points
2022-04-01T23:21:19.473+00:00

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.ElementwiseGreaterThanOrEqualImplementationU at Microsoft.Data.Analysis.PrimitiveDataFrameColumn1.ElementwiseGreaterThanOrEqualU"

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

What am I missing?

C#
C#
An object-oriented and type-safe programming language that has its roots in the C family of languages and includes support for component-oriented programming.
10,633 questions
.NET Machine learning
.NET Machine learning
.NET: Microsoft Technologies based on the .NET software framework.Machine learning: A type of artificial intelligence focused on enabling computers to use observed data to evolve new behaviors that have not been explicitly programmed.
154 questions
{count} votes