Base:
property
NullCount
Microsoft.Data.Analysis.DataFrameColumn.NullCount
56 references to NullCount
Microsoft.Data.Analysis (6)
PrimitiveDataFrameColumn.cs (5)
114protected internal override Field GetArrowField() => new Field(Name, GetArrowType(), NullCount != 0); 259var notNullValuesCount = Length - NullCount; 280return (double)Convert.ChangeType((T)Sum(), typeof(double)) / (Length - NullCount); 362var ret = CreateNewColumn(Name, Length - NullCount); 783column.Append(Length - NullCount);
PrimitiveDataFrameColumn.Sort.cs (1)
26var columnNullIndices = new Int64DataFrameColumn("NullIndices", NullCount);
Microsoft.Data.Analysis.Tests (50)
DataFrameTests.cs (5)
873Assert.Equal(1, column.NullCount); 884Assert.Equal(column.Length, column.NullCount); 891Assert.Equal(column.Length, column.NullCount); 898Assert.Equal(0, column.NullCount); 905Assert.Equal(0, column.NullCount);
DataFrameTests.Sort.cs (4)
76Assert.Equal(0, intColumn.NullCount); 78Assert.Equal(numberOfNulls, intColumn.NullCount); 82Assert.Equal(numberOfNulls, sortedIntColumn.NullCount); 89Assert.Equal(numberOfNulls, intColumn.NullCount);
PrimitiveDataFrameColumnTests.cs (41)
38Assert.Equal(0, column2.NullCount); 41Assert.Equal(10, column3.NullCount); 46Assert.Equal(1, column2.NullCount); 48Assert.Equal(1, column2.NullCount); 50Assert.Equal(2, column2.NullCount); 52Assert.Equal(1, column2.NullCount); 54Assert.Equal(1, column2.NullCount); 87Assert.Equal(5, intColumn.NullCount); 89Assert.Equal(5, intColumn.NullCount); 91Assert.Equal(4, intColumn.NullCount); 114Assert.Equal(1, intColumn.NullCount); 128Assert.Equal(1, dataFrameColumn1.NullCount); 146Assert.Equal(2, intColumn.NullCount); 163Assert.Equal(5, intColumn.NullCount); 182Assert.Equal(6, intColumn.NullCount); 206Assert.Equal(0, intColumn.NullCount); 225Assert.Equal(2, intColumn.NullCount); 249Assert.Equal(4, intColumn.NullCount); 256Assert.Equal(5, intColumn.NullCount); 269Assert.Equal(intColumn.NullCount, copy.NullCount); 288Assert.Equal(column.NullCount, clonedColumn.NullCount); 308Assert.Equal(column.NullCount, clonedColumn.NullCount); 330Assert.Equal(column.NullCount, clonedColumn.NullCount); 351Assert.Equal(2, clonedColumn.NullCount); 372Assert.Equal(column.NullCount, clonedColumn.NullCount); 393Assert.Equal(2, clonedColumn.NullCount); 414Assert.Equal(column.NullCount, clonedColumn.NullCount); 435Assert.Equal(column.NullCount, clonedColumn.NullCount); 541Assert.Equal(3, sum.NullCount); 566Assert.Equal(3, sum.NullCount); 591Assert.Equal(3, diff.NullCount); 609Assert.Equal(3, mult.NullCount); 627Assert.Equal(3, div.NullCount); 661Assert.Equal(0, res.NullCount);