You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
[DataFrame] Null Reference on ElementwiseEquals on DateTime columns from DataFrame #6829
#r "nuget: Microsoft.Data.Analysis, 0.20.1"
using Microsoft.Data.Analysis;
var column = new DateTimeDataFrameColumn("Test");
column.Append(DateTime.Today);
var df = new DataFrame(column);
Console.WriteLine(column == df["Test"]); // true
Console.WriteLine(column.ElementwiseEquals(DateTime.Today).Any()); // True
df["Test"].ElementwiseEquals(DateTime.Today) // Throws NullReferenceException
Stack trace
Error: System.NullReferenceException: Object reference not set to an instance of an object.
at Microsoft.Data.Analysis.PrimitiveDataFrameColumn1.ElementwiseEqualsImplementation[U](U value) at Microsoft.Data.Analysis.PrimitiveDataFrameColumn1.ElementwiseEquals[U](U value)
at Submission#6.<>d__0.MoveNext()
--- End of stack trace from previous location ---
at Microsoft.CodeAnalysis.Scripting.ScriptExecutionState.RunSubmissionsAsync[TResult](ImmutableArray1 precedingExecutors, Func2 currentExecutor, StrongBox1 exceptionHolderOpt, Func2 catchExceptionOpt, CancellationToken cancellationToken)
changed the title [-][DataFrame] Null Reference on ElementwiseEquals[/-][+][DataFrame] Null Reference on ElementwiseEquals on DateTime columns from DataFrame [/+]on Sep 18, 2023
Activity
[-][DataFrame] Null Reference on ElementwiseEquals[/-][+][DataFrame] Null Reference on ElementwiseEquals on DateTime columns from DataFrame [/+]Added tests for dotnet#6829
Fix wrong type conversion on PrimitiveDataFrameColumn (#6834)
Merge Main into Feature/4.0 (#6747)