4 overrides of NullCount
Microsoft.Data.Analysis (4)
DataFrameColumns\ArrowStringDataFrameColumn.cs (1)
70public override long NullCount => _nullCount;
DataFrameColumns\StringDataFrameColumn.cs (1)
55public override long NullCount => _nullCount;
DataFrameColumns\VBufferDataFrameColumn.cs (1)
57public override long NullCount => 0;
PrimitiveDataFrameColumn.cs (1)
302public override long NullCount
76 references to NullCount
Microsoft.Data.Analysis (4)
DataFrame.cs (2)
688Debug.Assert(newColumn.NullCount == oldColumn.NullCount);
DataFrameColumn.cs (2)
148public virtual bool IsValid(long index) => NullCount == 0 || this[index] != null; 419dataColumn[1] = (Length - NullCount).ToString();
Microsoft.Data.Analysis.Tests (72)
ArrowIntegrationTests.cs (6)
169Assert.Equal(0, df.Columns["Column1"].NullCount); 188Assert.Equal(0, df.Columns["EmptyNullBitMapColumn"].NullCount); 191Assert.Equal(1, df.Columns["EmptyNullBitMapColumn"].NullCount); 192Assert.Equal(10, df.Columns["EmptyDataColumn"].NullCount); 195Assert.Equal(9, df.Columns["EmptyDataColumn"].NullCount); 208Assert.Equal(0, emptyDataFrame.Columns["EmptyDataAndNullColumns"].NullCount);
DataFrame.IOTests.cs (12)
364Assert.Equal(0, column.NullCount); 472Assert.Equal(1, column.NullCount); 476Assert.Equal(0, column.NullCount); 536Assert.Equal(1, column.NullCount); 540Assert.Equal(0, column.NullCount); 807Assert.Equal(6, column.NullCount); 852Assert.Equal(3, column.NullCount); 856Assert.Equal(2, column.NullCount); 914Assert.Equal(3, column.NullCount); 918Assert.Equal(2, column.NullCount); 1150Assert.Equal(2, df.Columns[0].NullCount); 1151Assert.Equal(0, df.Columns[1].NullCount);
DataFrameTests.cs (50)
827Assert.Equal(0, filled.NullCount); 982Assert.Equal(1, df.Columns[intColumnIndex].NullCount); 984Assert.Equal(0, df.Columns[intColumnIndex].NullCount); 986Assert.Equal(1, df.Columns[intColumnIndex].NullCount); 1019Assert.Equal(1, df.Columns[0].NullCount); 1020Assert.Equal(1, df.Columns[1].NullCount); 1024Assert.Equal(1, df.Columns[0].NullCount); 1025Assert.Equal(1, df.Columns[1].NullCount); 1032Assert.Equal(2, ret.Columns[0].NullCount); 1033Assert.Equal(2, ret.Columns[1].NullCount); 1091Assert.Equal(1, df.Columns[0].NullCount); 1092Assert.Equal(1, df.Columns[1].NullCount); 1096Assert.Equal(1, ret.Columns[0].NullCount); 1097Assert.Equal(1, ret.Columns[1].NullCount); 1101Assert.Equal(1, df.Columns[0].NullCount); 1102Assert.Equal(2, df.Columns[1].NullCount); 1106Assert.Equal(1, ret.Columns[0].NullCount); 1107Assert.Equal(3, ret.Columns[1].NullCount); 1111Assert.Equal(2, df.Columns[0].NullCount); 1112Assert.Equal(3, df.Columns[1].NullCount); 1115Assert.Equal(3, ret.Columns[0].NullCount); 1116Assert.Equal(4, ret.Columns[1].NullCount); 1120Assert.Equal(2, df.Columns[0].NullCount); 1121Assert.Equal(3, df.Columns[1].NullCount); 1124Assert.Equal(2, ret.Columns[0].NullCount); 1125Assert.Equal(3, ret.Columns[1].NullCount); 1132Assert.Equal(2, df.Columns[0].NullCount); 1133Assert.Equal(4, df.Columns[1].NullCount); 1139Assert.Equal(2, ret.Columns[0].NullCount); 1140Assert.Equal(5, ret.Columns[1].NullCount); 1146Assert.Equal(3, df.Columns[0].NullCount); 1147Assert.Equal(4, df.Columns[1].NullCount); 1152Assert.Equal(4, ret.Columns[0].NullCount); 1153Assert.Equal(4, ret.Columns[1].NullCount); 1159Assert.Equal(4, df.Columns[0].NullCount); 1160Assert.Equal(5, df.Columns[1].NullCount); 1165Assert.Equal(5, ret.Columns[0].NullCount); 1166Assert.Equal(6, ret.Columns[1].NullCount); 1177Assert.Equal(5, df.Columns[0].NullCount); 1178Assert.Equal(6, df.Columns[1].NullCount); 1184Assert.Equal(5, df.Columns[0].NullCount); 1185Assert.Equal(6, df.Columns[1].NullCount); 1189Assert.Equal(6, ret.Columns[0].NullCount); 1190Assert.Equal(7, ret.Columns[1].NullCount); 1199Assert.Equal(2, df.Columns[0].NullCount); 1200Assert.Equal(1, df.Columns[1].NullCount); 1207Assert.Equal(2, df.Columns[0].NullCount); 1208Assert.Equal(1, df.Columns[1].NullCount); 1209Assert.Equal(0, df.Columns[2].NullCount); 1213Assert.Equal(1, df.Columns[2].NullCount);
StringDataFrameColumnTests.cs (4)
41Assert.Equal(2, clonedColumn.NullCount); 57Assert.Equal(2, clonedColumn.NullCount); 73Assert.Equal(2, clonedColumn.NullCount); 85Assert.Equal(1, clonedColumn.NullCount);