4 overrides of NullCount
Microsoft.Data.Analysis (4)
DataFrameColumns\ArrowStringDataFrameColumn.cs (1)
70
public override long
NullCount
=> _nullCount;
DataFrameColumns\StringDataFrameColumn.cs (1)
55
public override long
NullCount
=> _nullCount;
DataFrameColumns\VBufferDataFrameColumn.cs (1)
57
public override long
NullCount
=> 0;
PrimitiveDataFrameColumn.cs (1)
302
public override long
NullCount
76 references to NullCount
Microsoft.Data.Analysis (4)
DataFrame.cs (2)
688
Debug.Assert(newColumn.
NullCount
== oldColumn.
NullCount
);
DataFrameColumn.cs (2)
148
public virtual bool IsValid(long index) =>
NullCount
== 0 || this[index] != null;
419
dataColumn[1] = (Length -
NullCount
).ToString();
Microsoft.Data.Analysis.Tests (72)
ArrowIntegrationTests.cs (6)
180
Assert.Equal(0, df.Columns["Column1"].
NullCount
);
199
Assert.Equal(0, df.Columns["EmptyNullBitMapColumn"].
NullCount
);
202
Assert.Equal(1, df.Columns["EmptyNullBitMapColumn"].
NullCount
);
203
Assert.Equal(10, df.Columns["EmptyDataColumn"].
NullCount
);
206
Assert.Equal(9, df.Columns["EmptyDataColumn"].
NullCount
);
219
Assert.Equal(0, emptyDataFrame.Columns["EmptyDataAndNullColumns"].
NullCount
);
DataFrame.IOTests.cs (12)
370
Assert.Equal(0, column.
NullCount
);
478
Assert.Equal(1, column.
NullCount
);
482
Assert.Equal(0, column.
NullCount
);
542
Assert.Equal(1, column.
NullCount
);
546
Assert.Equal(0, column.
NullCount
);
813
Assert.Equal(6, column.
NullCount
);
858
Assert.Equal(3, column.
NullCount
);
862
Assert.Equal(2, column.
NullCount
);
920
Assert.Equal(3, column.
NullCount
);
924
Assert.Equal(2, column.
NullCount
);
1156
Assert.Equal(2, df.Columns[0].
NullCount
);
1157
Assert.Equal(0, df.Columns[1].
NullCount
);
DataFrameTests.cs (50)
829
Assert.Equal(0, filled.
NullCount
);
984
Assert.Equal(1, df.Columns[intColumnIndex].
NullCount
);
986
Assert.Equal(0, df.Columns[intColumnIndex].
NullCount
);
988
Assert.Equal(1, df.Columns[intColumnIndex].
NullCount
);
1021
Assert.Equal(1, df.Columns[0].
NullCount
);
1022
Assert.Equal(1, df.Columns[1].
NullCount
);
1026
Assert.Equal(1, df.Columns[0].
NullCount
);
1027
Assert.Equal(1, df.Columns[1].
NullCount
);
1034
Assert.Equal(2, ret.Columns[0].
NullCount
);
1035
Assert.Equal(2, ret.Columns[1].
NullCount
);
1093
Assert.Equal(1, df.Columns[0].
NullCount
);
1094
Assert.Equal(1, df.Columns[1].
NullCount
);
1098
Assert.Equal(1, ret.Columns[0].
NullCount
);
1099
Assert.Equal(1, ret.Columns[1].
NullCount
);
1103
Assert.Equal(1, df.Columns[0].
NullCount
);
1104
Assert.Equal(2, df.Columns[1].
NullCount
);
1108
Assert.Equal(1, ret.Columns[0].
NullCount
);
1109
Assert.Equal(3, ret.Columns[1].
NullCount
);
1113
Assert.Equal(2, df.Columns[0].
NullCount
);
1114
Assert.Equal(3, df.Columns[1].
NullCount
);
1117
Assert.Equal(3, ret.Columns[0].
NullCount
);
1118
Assert.Equal(4, ret.Columns[1].
NullCount
);
1122
Assert.Equal(2, df.Columns[0].
NullCount
);
1123
Assert.Equal(3, df.Columns[1].
NullCount
);
1126
Assert.Equal(2, ret.Columns[0].
NullCount
);
1127
Assert.Equal(3, ret.Columns[1].
NullCount
);
1134
Assert.Equal(2, df.Columns[0].
NullCount
);
1135
Assert.Equal(4, df.Columns[1].
NullCount
);
1141
Assert.Equal(2, ret.Columns[0].
NullCount
);
1142
Assert.Equal(5, ret.Columns[1].
NullCount
);
1148
Assert.Equal(3, df.Columns[0].
NullCount
);
1149
Assert.Equal(4, df.Columns[1].
NullCount
);
1154
Assert.Equal(4, ret.Columns[0].
NullCount
);
1155
Assert.Equal(4, ret.Columns[1].
NullCount
);
1161
Assert.Equal(4, df.Columns[0].
NullCount
);
1162
Assert.Equal(5, df.Columns[1].
NullCount
);
1167
Assert.Equal(5, ret.Columns[0].
NullCount
);
1168
Assert.Equal(6, ret.Columns[1].
NullCount
);
1179
Assert.Equal(5, df.Columns[0].
NullCount
);
1180
Assert.Equal(6, df.Columns[1].
NullCount
);
1186
Assert.Equal(5, df.Columns[0].
NullCount
);
1187
Assert.Equal(6, df.Columns[1].
NullCount
);
1191
Assert.Equal(6, ret.Columns[0].
NullCount
);
1192
Assert.Equal(7, ret.Columns[1].
NullCount
);
1201
Assert.Equal(2, df.Columns[0].
NullCount
);
1202
Assert.Equal(1, df.Columns[1].
NullCount
);
1209
Assert.Equal(2, df.Columns[0].
NullCount
);
1210
Assert.Equal(1, df.Columns[1].
NullCount
);
1211
Assert.Equal(0, df.Columns[2].
NullCount
);
1215
Assert.Equal(1, df.Columns[2].
NullCount
);
StringDataFrameColumnTests.cs (4)
47
Assert.Equal(2, clonedColumn.
NullCount
);
63
Assert.Equal(2, clonedColumn.
NullCount
);
79
Assert.Equal(2, clonedColumn.
NullCount
);
91
Assert.Equal(1, clonedColumn.
NullCount
);