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)
169
Assert.Equal(0, df.Columns["Column1"].
NullCount
);
188
Assert.Equal(0, df.Columns["EmptyNullBitMapColumn"].
NullCount
);
191
Assert.Equal(1, df.Columns["EmptyNullBitMapColumn"].
NullCount
);
192
Assert.Equal(10, df.Columns["EmptyDataColumn"].
NullCount
);
195
Assert.Equal(9, df.Columns["EmptyDataColumn"].
NullCount
);
208
Assert.Equal(0, emptyDataFrame.Columns["EmptyDataAndNullColumns"].
NullCount
);
DataFrame.IOTests.cs (12)
364
Assert.Equal(0, column.
NullCount
);
472
Assert.Equal(1, column.
NullCount
);
476
Assert.Equal(0, column.
NullCount
);
536
Assert.Equal(1, column.
NullCount
);
540
Assert.Equal(0, column.
NullCount
);
807
Assert.Equal(6, column.
NullCount
);
852
Assert.Equal(3, column.
NullCount
);
856
Assert.Equal(2, column.
NullCount
);
914
Assert.Equal(3, column.
NullCount
);
918
Assert.Equal(2, column.
NullCount
);
1150
Assert.Equal(2, df.Columns[0].
NullCount
);
1151
Assert.Equal(0, df.Columns[1].
NullCount
);
DataFrameTests.cs (50)
827
Assert.Equal(0, filled.
NullCount
);
982
Assert.Equal(1, df.Columns[intColumnIndex].
NullCount
);
984
Assert.Equal(0, df.Columns[intColumnIndex].
NullCount
);
986
Assert.Equal(1, df.Columns[intColumnIndex].
NullCount
);
1019
Assert.Equal(1, df.Columns[0].
NullCount
);
1020
Assert.Equal(1, df.Columns[1].
NullCount
);
1024
Assert.Equal(1, df.Columns[0].
NullCount
);
1025
Assert.Equal(1, df.Columns[1].
NullCount
);
1032
Assert.Equal(2, ret.Columns[0].
NullCount
);
1033
Assert.Equal(2, ret.Columns[1].
NullCount
);
1091
Assert.Equal(1, df.Columns[0].
NullCount
);
1092
Assert.Equal(1, df.Columns[1].
NullCount
);
1096
Assert.Equal(1, ret.Columns[0].
NullCount
);
1097
Assert.Equal(1, ret.Columns[1].
NullCount
);
1101
Assert.Equal(1, df.Columns[0].
NullCount
);
1102
Assert.Equal(2, df.Columns[1].
NullCount
);
1106
Assert.Equal(1, ret.Columns[0].
NullCount
);
1107
Assert.Equal(3, ret.Columns[1].
NullCount
);
1111
Assert.Equal(2, df.Columns[0].
NullCount
);
1112
Assert.Equal(3, df.Columns[1].
NullCount
);
1115
Assert.Equal(3, ret.Columns[0].
NullCount
);
1116
Assert.Equal(4, ret.Columns[1].
NullCount
);
1120
Assert.Equal(2, df.Columns[0].
NullCount
);
1121
Assert.Equal(3, df.Columns[1].
NullCount
);
1124
Assert.Equal(2, ret.Columns[0].
NullCount
);
1125
Assert.Equal(3, ret.Columns[1].
NullCount
);
1132
Assert.Equal(2, df.Columns[0].
NullCount
);
1133
Assert.Equal(4, df.Columns[1].
NullCount
);
1139
Assert.Equal(2, ret.Columns[0].
NullCount
);
1140
Assert.Equal(5, ret.Columns[1].
NullCount
);
1146
Assert.Equal(3, df.Columns[0].
NullCount
);
1147
Assert.Equal(4, df.Columns[1].
NullCount
);
1152
Assert.Equal(4, ret.Columns[0].
NullCount
);
1153
Assert.Equal(4, ret.Columns[1].
NullCount
);
1159
Assert.Equal(4, df.Columns[0].
NullCount
);
1160
Assert.Equal(5, df.Columns[1].
NullCount
);
1165
Assert.Equal(5, ret.Columns[0].
NullCount
);
1166
Assert.Equal(6, ret.Columns[1].
NullCount
);
1177
Assert.Equal(5, df.Columns[0].
NullCount
);
1178
Assert.Equal(6, df.Columns[1].
NullCount
);
1184
Assert.Equal(5, df.Columns[0].
NullCount
);
1185
Assert.Equal(6, df.Columns[1].
NullCount
);
1189
Assert.Equal(6, ret.Columns[0].
NullCount
);
1190
Assert.Equal(7, ret.Columns[1].
NullCount
);
1199
Assert.Equal(2, df.Columns[0].
NullCount
);
1200
Assert.Equal(1, df.Columns[1].
NullCount
);
1207
Assert.Equal(2, df.Columns[0].
NullCount
);
1208
Assert.Equal(1, df.Columns[1].
NullCount
);
1209
Assert.Equal(0, df.Columns[2].
NullCount
);
1213
Assert.Equal(1, df.Columns[2].
NullCount
);
StringDataFrameColumnTests.cs (4)
41
Assert.Equal(2, clonedColumn.
NullCount
);
57
Assert.Equal(2, clonedColumn.
NullCount
);
73
Assert.Equal(2, clonedColumn.
NullCount
);
85
Assert.Equal(1, clonedColumn.
NullCount
);