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)
180Assert.Equal(0, df.Columns["Column1"].NullCount); 199Assert.Equal(0, df.Columns["EmptyNullBitMapColumn"].NullCount); 202Assert.Equal(1, df.Columns["EmptyNullBitMapColumn"].NullCount); 203Assert.Equal(10, df.Columns["EmptyDataColumn"].NullCount); 206Assert.Equal(9, df.Columns["EmptyDataColumn"].NullCount); 219Assert.Equal(0, emptyDataFrame.Columns["EmptyDataAndNullColumns"].NullCount);
DataFrame.IOTests.cs (12)
370Assert.Equal(0, column.NullCount); 478Assert.Equal(1, column.NullCount); 482Assert.Equal(0, column.NullCount); 542Assert.Equal(1, column.NullCount); 546Assert.Equal(0, column.NullCount); 813Assert.Equal(6, column.NullCount); 858Assert.Equal(3, column.NullCount); 862Assert.Equal(2, column.NullCount); 920Assert.Equal(3, column.NullCount); 924Assert.Equal(2, column.NullCount); 1156Assert.Equal(2, df.Columns[0].NullCount); 1157Assert.Equal(0, df.Columns[1].NullCount);
DataFrameTests.cs (50)
829Assert.Equal(0, filled.NullCount); 984Assert.Equal(1, df.Columns[intColumnIndex].NullCount); 986Assert.Equal(0, df.Columns[intColumnIndex].NullCount); 988Assert.Equal(1, df.Columns[intColumnIndex].NullCount); 1021Assert.Equal(1, df.Columns[0].NullCount); 1022Assert.Equal(1, df.Columns[1].NullCount); 1026Assert.Equal(1, df.Columns[0].NullCount); 1027Assert.Equal(1, df.Columns[1].NullCount); 1034Assert.Equal(2, ret.Columns[0].NullCount); 1035Assert.Equal(2, ret.Columns[1].NullCount); 1093Assert.Equal(1, df.Columns[0].NullCount); 1094Assert.Equal(1, df.Columns[1].NullCount); 1098Assert.Equal(1, ret.Columns[0].NullCount); 1099Assert.Equal(1, ret.Columns[1].NullCount); 1103Assert.Equal(1, df.Columns[0].NullCount); 1104Assert.Equal(2, df.Columns[1].NullCount); 1108Assert.Equal(1, ret.Columns[0].NullCount); 1109Assert.Equal(3, ret.Columns[1].NullCount); 1113Assert.Equal(2, df.Columns[0].NullCount); 1114Assert.Equal(3, df.Columns[1].NullCount); 1117Assert.Equal(3, ret.Columns[0].NullCount); 1118Assert.Equal(4, ret.Columns[1].NullCount); 1122Assert.Equal(2, df.Columns[0].NullCount); 1123Assert.Equal(3, df.Columns[1].NullCount); 1126Assert.Equal(2, ret.Columns[0].NullCount); 1127Assert.Equal(3, ret.Columns[1].NullCount); 1134Assert.Equal(2, df.Columns[0].NullCount); 1135Assert.Equal(4, df.Columns[1].NullCount); 1141Assert.Equal(2, ret.Columns[0].NullCount); 1142Assert.Equal(5, ret.Columns[1].NullCount); 1148Assert.Equal(3, df.Columns[0].NullCount); 1149Assert.Equal(4, df.Columns[1].NullCount); 1154Assert.Equal(4, ret.Columns[0].NullCount); 1155Assert.Equal(4, ret.Columns[1].NullCount); 1161Assert.Equal(4, df.Columns[0].NullCount); 1162Assert.Equal(5, df.Columns[1].NullCount); 1167Assert.Equal(5, ret.Columns[0].NullCount); 1168Assert.Equal(6, ret.Columns[1].NullCount); 1179Assert.Equal(5, df.Columns[0].NullCount); 1180Assert.Equal(6, df.Columns[1].NullCount); 1186Assert.Equal(5, df.Columns[0].NullCount); 1187Assert.Equal(6, df.Columns[1].NullCount); 1191Assert.Equal(6, ret.Columns[0].NullCount); 1192Assert.Equal(7, ret.Columns[1].NullCount); 1201Assert.Equal(2, df.Columns[0].NullCount); 1202Assert.Equal(1, df.Columns[1].NullCount); 1209Assert.Equal(2, df.Columns[0].NullCount); 1210Assert.Equal(1, df.Columns[1].NullCount); 1211Assert.Equal(0, df.Columns[2].NullCount); 1215Assert.Equal(1, df.Columns[2].NullCount);
StringDataFrameColumnTests.cs (4)
47Assert.Equal(2, clonedColumn.NullCount); 63Assert.Equal(2, clonedColumn.NullCount); 79Assert.Equal(2, clonedColumn.NullCount); 91Assert.Equal(1, clonedColumn.NullCount);