9 writes to Length
Microsoft.Data.Analysis (9)
DataFrameColumn.cs (1)
29
Length
= length;
DataFrameColumns\ArrowStringDataFrameColumn.cs (1)
194
Length
++;
DataFrameColumns\StringDataFrameColumn.cs (1)
79
Length
++;
DataFrameColumns\VBufferDataFrameColumn.cs (1)
79
Length
++;
PrimitiveDataFrameColumn.cs (5)
38
Length
= _columnContainer.Length;
44
Length
= _columnContainer.Length;
286
Length
= _columnContainer.Length;
292
Length
++;
298
Length
+= count;
507 references to Length
Microsoft.Data.Analysis (160)
DataFrame.cs (3)
402
if (Columns[i].
Length
!= rowCount)
496
long length = column.
Length
;
661
if (column.
Length
== Rows.Count)
DataFrame.IO.cs (2)
474
Int64DataFrameColumn indexColumn = new Int64DataFrameColumn("IndexColumn", columns[0].
Length
);
475
for (long i = 0; i < columns[0].
Length
; i++)
DataFrameColumn.cs (11)
283
for (int i = 0; i < this.
Length
; i++)
419
dataColumn[1] = (
Length
- NullCount).ToString();
440
var numberOfRows = Math.Min(
Length
, rowsToShow);
447
if (numberOfRows <
Length
)
449
sb.Append(String.Format(Strings.AmountOfRowsShown, rowsToShow,
Length
));
478
long i = ascending ? columnNullIndices.
Length
: columnSortIndices.
Length
- 1;
481
i -= columnNullIndices.
Length
;
517
var start = putNullValuesLast ? columnSortIndices.
Length
- columnNullIndices.
Length
: 0;
518
for (long j = 0; j < columnNullIndices.
Length
; j++)
DataFrameColumnCollection.cs (4)
77
RowCount = column.
Length
;
79
else if (column.
Length
!= RowCount)
92
RowCount = column.
Length
;
106
if (RowCount > 0 && column.
Length
!= RowCount)
DataFrameColumns\ArrowStringDataFrameColumn.cs (27)
77
if ((ulong)index > (ulong)
Length
)
93
if ((ulong)index > (ulong)
Length
)
112
if (((curBitMap >> (indexInBuffer & 7)) & 1) == 0 && indexInBuffer <
Length
- 1 && NullCount > 0)
120
if (((curBitMap >> (indexInBuffer & 7)) & 1) == 1 && indexInBuffer <
Length
)
125
else if (indexInBuffer ==
Length
- 1)
216
SetValidityBit(
Length
- 1, !value.IsEmpty);
222
if (rowIndex >=
Length
)
316
for (long i = 0; i <
Length
; i++)
331
if (
Length
== 0)
383
for (long i = 0; i <
Length
; i++)
421
if (boolColumn.
Length
>
Length
)
425
for (long i = 0; i < boolColumn.
Length
; i++)
438
for (long i = 0; i < mapIndices.
Length
; i++)
440
int? index = mapIndices[invertMapIndices ? mapIndices.
Length
- 1 - i : i];
458
for (long i = 0; i < mapIndices.
Length
; i++)
460
long? index = mapIndices[invertMapIndices ? mapIndices.
Length
- 1 - i : i];
495
for (long i = 0; i <
Length
; i++)
539
for (long i = 0; i <
Length
; i++)
568
for (long i = 0; i <
Length
; i++)
602
PrimitiveDataFrameColumn<bool> ret = new PrimitiveDataFrameColumn<bool>(Name,
Length
);
605
for (long i = 0; i <
Length
; i++)
612
for (long i = 0; i <
Length
; i++)
643
PrimitiveDataFrameColumn<bool> ret = new PrimitiveDataFrameColumn<bool>(Name,
Length
);
646
for (long i = 0; i <
Length
; i++)
653
for (long i = 0; i <
Length
; i++)
688
for (long i = 0; i <
Length
; i++)
DataFrameColumns\StringDataFrameColumn.cs (20)
59
if (length <
Length
)
62
for (long i =
Length
; i < length; i++)
92
for (long i = 0; i < column.
Length
; i++)
105
if (rowIndex >=
Length
)
260
var columnSortIndices = new Int64DataFrameColumn("SortIndices",
Length
);
290
StringDataFrameColumn ret = new StringDataFrameColumn(Name,
Length
);
291
for (long i = 0; i <
Length
; i++)
328
if (boolColumn.
Length
>
Length
)
331
for (long i = 0; i < boolColumn.
Length
; i++)
343
var ret = new StringDataFrameColumn(Name, mapIndices.
Length
);
353
long index = invertMapIndices ? mapIndices.
Length
- 1 - rowIndex : rowIndex;
365
var ret = new StringDataFrameColumn(Name, mapIndices.
Length
);
375
long index = invertMapIndices ? mapIndices.
Length
- 1 - rowIndex : rowIndex;
414
for (long i = 0; i <
Length
; i++)
454
for (long i = 0; i < column.
Length
; i++)
478
var ret = new StringDataFrameColumn(Name,
Length
- NullCount);
481
for (long i = 0; i <
Length
; i++)
515
if (
Length
> row)
519
else if (
Length
== row)
DataFrameColumns\VBufferDataFrameColumn.cs (14)
61
if (length <
Length
)
64
for (long i =
Length
; i < length; i++)
84
if (rowIndex >=
Length
)
198
if (
Length
> row)
202
else if (
Length
== row)
214
if (boolColumn.
Length
>
Length
)
217
for (long i = 0; i < boolColumn.
Length
; i++)
229
var ret = new VBufferDataFrameColumn<T>(Name, mapIndices.
Length
);
239
long index = invertMapIndices ? mapIndices.
Length
- 1 - rowIndex : rowIndex;
251
var ret = new VBufferDataFrameColumn<T>(Name, mapIndices.
Length
);
261
long index = invertMapIndices ? mapIndices.
Length
- 1 - rowIndex : rowIndex;
305
var ret = new VBufferDataFrameColumn<T>(Name,
Length
);
307
for (long i = 0; i <
Length
; i++)
GroupBy.cs (13)
180
ret.SetTableRowCount(firstColumn.
Length
);
223
ret.SetTableRowCount(firstColumn.
Length
);
261
long retColumnLength = retColumn.
Length
;
264
if (firstColumn.
Length
<= retColumnLength)
277
ret.SetTableRowCount(firstColumn.
Length
);
317
long retColumnLength = retColumn.
Length
;
318
if (firstColumn.
Length
<= retColumnLength)
331
ret.SetTableRowCount(firstColumn.
Length
);
378
ret.SetTableRowCount(firstColumn.
Length
);
406
ret.SetTableRowCount(firstColumn.
Length
);
434
ret.SetTableRowCount(firstColumn.
Length
);
462
ret.SetTableRowCount(firstColumn.
Length
);
491
ret.SetTableRowCount(firstColumn.
Length
);
PrimitiveDataFrameColumn.BinaryOperationAPIs.ExplodedColumns.cs (6)
8767
if (column.
Length
!=
Length
)
8791
if (column.
Length
!=
Length
)
8815
if (column.
Length
!=
Length
)
PrimitiveDataFrameColumn.BinaryOperationImplementations.Exploded.cs (14)
20
if (column.
Length
!=
Length
)
50
if (column.
Length
!=
Length
)
80
if (column.
Length
!=
Length
)
110
if (column.
Length
!=
Length
)
140
if (column.
Length
!=
Length
)
170
if (column.
Length
!=
Length
)
200
if (column.
Length
!=
Length
)
PrimitiveDataFrameColumn.cs (26)
199
if (startIndex >=
Length
)
209
if (startIndex >=
Length
)
215
long endIndex = Math.Min(
Length
, startIndex + length);
259
var notNullValuesCount =
Length
- NullCount;
278
if (
Length
== 0)
280
return (double)Convert.ChangeType((T)Sum(), typeof(double)) / (
Length
- NullCount);
362
var ret = CreateNewColumn(Name,
Length
- NullCount);
462
if (boolColumn.
Length
>
Length
)
466
for (long i = 0; i < boolColumn.
Length
; i++)
518
while (rows.MoveNext() && numberOfRows <
Length
)
683
var resultColumn = new PrimitiveDataFrameColumn<TResult>("Result",
Length
);
699
for (long i = 0; i < ret.
Length
; i++)
732
for (long i = 0; i <
Length
; i++)
776
mean = (float)Convert.ChangeType(Sum(), typeof(float)) /
Length
;
783
column.Append(
Length
- NullCount);
904
if (
Length
> row)
908
else if (
Length
== row)
930
var ret = new BooleanDataFrameColumn(Name,
Length
);
932
for (long i = 0; i <
Length
; i++)
942
var ret = new BooleanDataFrameColumn(Name,
Length
);
944
for (long i = 0; i <
Length
; i++)
955
if (column.
Length
!=
Length
)
1282
if (column.
Length
!=
Length
)
PrimitiveDataFrameColumn.Sort.cs (1)
101
Int64DataFrameColumn columnSortIndices = new Int64DataFrameColumn("SortIndices",
Length
);
StringDataFrameColumn.BinaryOperations.cs (19)
18
if (
Length
!= column.
Length
)
23
for (long i = 0; i <
Length
; i++)
78
if (left.
Length
!= right.
Length
)
82
PrimitiveDataFrameColumn<bool> ret = new PrimitiveDataFrameColumn<bool>(left.Name, left.
Length
);
83
for (long i = 0; i < left.
Length
; i++)
102
PrimitiveDataFrameColumn<bool> ret = new PrimitiveDataFrameColumn<bool>(Name,
Length
);
103
for (long i = 0; i <
Length
; i++)
122
if (left.
Length
!= column.
Length
)
126
PrimitiveDataFrameColumn<bool> ret = new PrimitiveDataFrameColumn<bool>(left.Name, left.
Length
);
127
for (long i = 0; i < left.
Length
; i++)
136
PrimitiveDataFrameColumn<bool> ret = new PrimitiveDataFrameColumn<bool>(Name,
Length
);
137
for (long i = 0; i <
Length
; i++)
146
PrimitiveDataFrameColumn<bool> ret = new PrimitiveDataFrameColumn<bool>(Name,
Length
);
147
for (long i = 0; i <
Length
; i++)
156
PrimitiveDataFrameColumn<bool> ret = new PrimitiveDataFrameColumn<bool>(Name,
Length
);
157
for (long i = 0; i <
Length
; i++)
Microsoft.Data.Analysis.Tests (344)
ArrowIntegrationTests.cs (4)
200
Assert.Equal(10, df.Columns["EmptyNullBitMapColumn"].
Length
);
204
Assert.Equal(10, df.Columns["EmptyDataColumn"].
Length
);
207
Assert.Equal(10, df.Columns["EmptyDataColumn"].
Length
);
218
Assert.Equal(0, emptyDataFrame.Columns["EmptyDataAndNullColumns"].
Length
);
ArrowStringColumnTests.cs (5)
32
Assert.Equal(2, stringColumn.
Length
);
47
Assert.Equal(4, stringColumn.
Length
);
71
Assert.Equal(7, clone.
Length
);
90
for (long i = 0; i < column.
Length
; i++)
108
Assert.Equal(column.
Length
, ret.NullCount);
DataFrame.IOTests.cs (3)
736
Assert.Equal(3, dataFrame.Columns[0].
Length
);
738
for (long i = 0; i < dataFrame.Columns[0].
Length
; i++)
1169
for (long i = 0; i < emptyColumn.
Length
; i++)
DataFrameColumn.BinaryOperationTests.cs (209)
33
Assert.Equal(columnResult.
Length
, verify.Count());
46
Assert.Equal(columnResult.
Length
, verify.Count());
59
Assert.Equal(columnResult.
Length
, verify.Count());
72
Assert.Equal(columnResult.
Length
, verify.Count());
85
Assert.Equal(columnResult.
Length
, verify.Count());
98
Assert.Equal(columnResult.
Length
, verify.Count());
111
Assert.Equal(columnResult.
Length
, verify.Count());
124
Assert.Equal(columnResult.
Length
, verify.Count());
137
Assert.Equal(columnResult.
Length
, verify.Count());
150
Assert.Equal(columnResult.
Length
, verify.Count());
163
Assert.Equal(columnResult.
Length
, verify.Count());
175
Assert.Equal(columnResult.
Length
, verify.Count());
187
Assert.Equal(columnResult.
Length
, verify.Count());
199
Assert.Equal(columnResult.
Length
, verify.Count());
211
Assert.Equal(columnResult.
Length
, verify.Count());
223
Assert.Equal(columnResult.
Length
, verify.Count());
235
Assert.Equal(columnResult.
Length
, verify.Count());
247
Assert.Equal(columnResult.
Length
, verify.Count());
259
Assert.Equal(columnResult.
Length
, verify.Count());
271
Assert.Equal(columnResult.
Length
, verify.Count());
283
Assert.Equal(columnResult.
Length
, verify.Count());
295
Assert.Equal(columnResult.
Length
, verify.Count());
307
Assert.Equal(columnResult.
Length
, verify.Count());
319
Assert.Equal(columnResult.
Length
, verify.Count());
331
Assert.Equal(columnResult.
Length
, verify.Count());
343
Assert.Equal(columnResult.
Length
, verify.Count());
355
Assert.Equal(columnResult.
Length
, verify.Count());
367
Assert.Equal(columnResult.
Length
, verify.Count());
379
Assert.Equal(columnResult.
Length
, verify.Count());
391
Assert.Equal(columnResult.
Length
, verify.Count());
403
Assert.Equal(columnResult.
Length
, verify.Count());
415
Assert.Equal(columnResult.
Length
, verify.Count());
427
Assert.Equal(columnResult.
Length
, verify.Count());
440
Assert.Equal(columnResult.
Length
, verify.Count());
453
Assert.Equal(columnResult.
Length
, verify.Count());
466
Assert.Equal(columnResult.
Length
, verify.Count());
479
Assert.Equal(columnResult.
Length
, verify.Count());
492
Assert.Equal(columnResult.
Length
, verify.Count());
505
Assert.Equal(columnResult.
Length
, verify.Count());
518
Assert.Equal(columnResult.
Length
, verify.Count());
531
Assert.Equal(columnResult.
Length
, verify.Count());
544
Assert.Equal(columnResult.
Length
, verify.Count());
557
Assert.Equal(columnResult.
Length
, verify.Count());
570
Assert.Equal(columnResult.
Length
, verify.Count());
582
Assert.Equal(columnResult.
Length
, verify.Count());
594
Assert.Equal(columnResult.
Length
, verify.Count());
606
Assert.Equal(columnResult.
Length
, verify.Count());
618
Assert.Equal(columnResult.
Length
, verify.Count());
630
Assert.Equal(columnResult.
Length
, verify.Count());
642
Assert.Equal(columnResult.
Length
, verify.Count());
654
Assert.Equal(columnResult.
Length
, verify.Count());
666
Assert.Equal(columnResult.
Length
, verify.Count());
678
Assert.Equal(columnResult.
Length
, verify.Count());
690
Assert.Equal(columnResult.
Length
, verify.Count());
702
Assert.Equal(columnResult.
Length
, verify.Count());
714
Assert.Equal(columnResult.
Length
, verify.Count());
726
Assert.Equal(columnResult.
Length
, verify.Count());
738
Assert.Equal(columnResult.
Length
, verify.Count());
750
Assert.Equal(columnResult.
Length
, verify.Count());
762
Assert.Equal(columnResult.
Length
, verify.Count());
774
Assert.Equal(columnResult.
Length
, verify.Count());
786
Assert.Equal(columnResult.
Length
, verify.Count());
798
Assert.Equal(columnResult.
Length
, verify.Count());
810
Assert.Equal(columnResult.
Length
, verify.Count());
822
Assert.Equal(columnResult.
Length
, verify.Count());
834
Assert.Equal(columnResult.
Length
, verify.Count());
847
Assert.Equal(columnResult.
Length
, verify.Count());
860
Assert.Equal(columnResult.
Length
, verify.Count());
873
Assert.Equal(columnResult.
Length
, verify.Count());
886
Assert.Equal(columnResult.
Length
, verify.Count());
899
Assert.Equal(columnResult.
Length
, verify.Count());
912
Assert.Equal(columnResult.
Length
, verify.Count());
925
Assert.Equal(columnResult.
Length
, verify.Count());
938
Assert.Equal(columnResult.
Length
, verify.Count());
951
Assert.Equal(columnResult.
Length
, verify.Count());
964
Assert.Equal(columnResult.
Length
, verify.Count());
977
Assert.Equal(columnResult.
Length
, verify.Count());
989
Assert.Equal(columnResult.
Length
, verify.Count());
1001
Assert.Equal(columnResult.
Length
, verify.Count());
1013
Assert.Equal(columnResult.
Length
, verify.Count());
1025
Assert.Equal(columnResult.
Length
, verify.Count());
1037
Assert.Equal(columnResult.
Length
, verify.Count());
1049
Assert.Equal(columnResult.
Length
, verify.Count());
1061
Assert.Equal(columnResult.
Length
, verify.Count());
1073
Assert.Equal(columnResult.
Length
, verify.Count());
1085
Assert.Equal(columnResult.
Length
, verify.Count());
1097
Assert.Equal(columnResult.
Length
, verify.Count());
1109
Assert.Equal(columnResult.
Length
, verify.Count());
1121
Assert.Equal(columnResult.
Length
, verify.Count());
1133
Assert.Equal(columnResult.
Length
, verify.Count());
1145
Assert.Equal(columnResult.
Length
, verify.Count());
1157
Assert.Equal(columnResult.
Length
, verify.Count());
1169
Assert.Equal(columnResult.
Length
, verify.Count());
1181
Assert.Equal(columnResult.
Length
, verify.Count());
1193
Assert.Equal(columnResult.
Length
, verify.Count());
1205
Assert.Equal(columnResult.
Length
, verify.Count());
1217
Assert.Equal(columnResult.
Length
, verify.Count());
1229
Assert.Equal(columnResult.
Length
, verify.Count());
1241
Assert.Equal(columnResult.
Length
, verify.Count());
1254
Assert.Equal(columnResult.
Length
, verify.Count());
1267
Assert.Equal(columnResult.
Length
, verify.Count());
1280
Assert.Equal(columnResult.
Length
, verify.Count());
1293
Assert.Equal(columnResult.
Length
, verify.Count());
1306
Assert.Equal(columnResult.
Length
, verify.Count());
1319
Assert.Equal(columnResult.
Length
, verify.Count());
1332
Assert.Equal(columnResult.
Length
, verify.Count());
1345
Assert.Equal(columnResult.
Length
, verify.Count());
1358
Assert.Equal(columnResult.
Length
, verify.Count());
1371
Assert.Equal(columnResult.
Length
, verify.Count());
1384
Assert.Equal(columnResult.
Length
, verify.Count());
1396
Assert.Equal(columnResult.
Length
, verify.Count());
1408
Assert.Equal(columnResult.
Length
, verify.Count());
1420
Assert.Equal(columnResult.
Length
, verify.Count());
1432
Assert.Equal(columnResult.
Length
, verify.Count());
1444
Assert.Equal(columnResult.
Length
, verify.Count());
1456
Assert.Equal(columnResult.
Length
, verify.Count());
1468
Assert.Equal(columnResult.
Length
, verify.Count());
1480
Assert.Equal(columnResult.
Length
, verify.Count());
1492
Assert.Equal(columnResult.
Length
, verify.Count());
1504
Assert.Equal(columnResult.
Length
, verify.Count());
1516
Assert.Equal(columnResult.
Length
, verify.Count());
1528
Assert.Equal(columnResult.
Length
, verify.Count());
1540
Assert.Equal(columnResult.
Length
, verify.Count());
1552
Assert.Equal(columnResult.
Length
, verify.Count());
1564
Assert.Equal(columnResult.
Length
, verify.Count());
1576
Assert.Equal(columnResult.
Length
, verify.Count());
1588
Assert.Equal(columnResult.
Length
, verify.Count());
1600
Assert.Equal(columnResult.
Length
, verify.Count());
1612
Assert.Equal(columnResult.
Length
, verify.Count());
1624
Assert.Equal(columnResult.
Length
, verify.Count());
1636
Assert.Equal(columnResult.
Length
, verify.Count());
1648
Assert.Equal(columnResult.
Length
, verify.Count());
1661
Assert.Equal(columnResult.
Length
, verify.Count());
1674
Assert.Equal(columnResult.
Length
, verify.Count());
1687
Assert.Equal(columnResult.
Length
, verify.Count());
1700
Assert.Equal(columnResult.
Length
, verify.Count());
1713
Assert.Equal(columnResult.
Length
, verify.Count());
1726
Assert.Equal(columnResult.
Length
, verify.Count());
1739
Assert.Equal(columnResult.
Length
, verify.Count());
1752
Assert.Equal(columnResult.
Length
, verify.Count());
1765
Assert.Equal(columnResult.
Length
, verify.Count());
1778
Assert.Equal(columnResult.
Length
, verify.Count());
1791
Assert.Equal(columnResult.
Length
, verify.Count());
1803
Assert.Equal(columnResult.
Length
, verify.Count());
1815
Assert.Equal(columnResult.
Length
, verify.Count());
1827
Assert.Equal(columnResult.
Length
, verify.Count());
1839
Assert.Equal(columnResult.
Length
, verify.Count());
1851
Assert.Equal(columnResult.
Length
, verify.Count());
1863
Assert.Equal(columnResult.
Length
, verify.Count());
1875
Assert.Equal(columnResult.
Length
, verify.Count());
1887
Assert.Equal(columnResult.
Length
, verify.Count());
1899
Assert.Equal(columnResult.
Length
, verify.Count());
1911
Assert.Equal(columnResult.
Length
, verify.Count());
1923
Assert.Equal(columnResult.
Length
, verify.Count());
1935
Assert.Equal(columnResult.
Length
, verify.Count());
1947
Assert.Equal(columnResult.
Length
, verify.Count());
1959
Assert.Equal(columnResult.
Length
, verify.Count());
1971
Assert.Equal(columnResult.
Length
, verify.Count());
1983
Assert.Equal(columnResult.
Length
, verify.Count());
1995
Assert.Equal(columnResult.
Length
, verify.Count());
2007
Assert.Equal(columnResult.
Length
, verify.Count());
2019
Assert.Equal(columnResult.
Length
, verify.Count());
2031
Assert.Equal(columnResult.
Length
, verify.Count());
2043
Assert.Equal(columnResult.
Length
, verify.Count());
2055
Assert.Equal(columnResult.
Length
, verify.Count());
2068
Assert.Equal(columnResult.
Length
, verify.Count());
2083
Assert.Equal(columnResult.
Length
, verify.Count());
2098
Assert.Equal(columnResult.
Length
, verify.Count());
2113
Assert.Equal(columnResult.
Length
, verify.Count());
2128
Assert.Equal(columnResult.
Length
, verify.Count());
2143
Assert.Equal(columnResult.
Length
, verify.Count());
2158
Assert.Equal(columnResult.
Length
, verify.Count());
2173
Assert.Equal(columnResult.
Length
, verify.Count());
2188
Assert.Equal(columnResult.
Length
, verify.Count());
2203
Assert.Equal(columnResult.
Length
, verify.Count());
2218
Assert.Equal(columnResult.
Length
, verify.Count());
2232
Assert.Equal(columnResult.
Length
, verify.Count());
2244
Assert.Equal(columnResult.
Length
, verify.Count());
2256
Assert.Equal(columnResult.
Length
, verify.Count());
2268
Assert.Equal(columnResult.
Length
, verify.Count());
2280
Assert.Equal(columnResult.
Length
, verify.Count());
2292
Assert.Equal(columnResult.
Length
, verify.Count());
2304
Assert.Equal(columnResult.
Length
, verify.Count());
2316
Assert.Equal(columnResult.
Length
, verify.Count());
2328
Assert.Equal(columnResult.
Length
, verify.Count());
2340
Assert.Equal(columnResult.
Length
, verify.Count());
2352
Assert.Equal(columnResult.
Length
, verify.Count());
2365
Assert.Equal(columnResult.
Length
, verify.Count());
2380
Assert.Equal(columnResult.
Length
, verify.Count());
2395
Assert.Equal(columnResult.
Length
, verify.Count());
2410
Assert.Equal(columnResult.
Length
, verify.Count());
2425
Assert.Equal(columnResult.
Length
, verify.Count());
2440
Assert.Equal(columnResult.
Length
, verify.Count());
2455
Assert.Equal(columnResult.
Length
, verify.Count());
2470
Assert.Equal(columnResult.
Length
, verify.Count());
2485
Assert.Equal(columnResult.
Length
, verify.Count());
2500
Assert.Equal(columnResult.
Length
, verify.Count());
2515
Assert.Equal(columnResult.
Length
, verify.Count());
2529
Assert.Equal(columnResult.
Length
, verify.Count());
2541
Assert.Equal(columnResult.
Length
, verify.Count());
2553
Assert.Equal(columnResult.
Length
, verify.Count());
2565
Assert.Equal(columnResult.
Length
, verify.Count());
2577
Assert.Equal(columnResult.
Length
, verify.Count());
2589
Assert.Equal(columnResult.
Length
, verify.Count());
2601
Assert.Equal(columnResult.
Length
, verify.Count());
2613
Assert.Equal(columnResult.
Length
, verify.Count());
2625
Assert.Equal(columnResult.
Length
, verify.Count());
2637
Assert.Equal(columnResult.
Length
, verify.Count());
2649
Assert.Equal(columnResult.
Length
, verify.Count());
DataFrameIDataViewTests.cs (6)
311
Assert.Equal(rowSize, newDf.Columns[i].
Length
);
333
Assert.Equal(5, newDf.Columns[i].
Length
);
392
Assert.Equal(6, column.
Length
);
409
Assert.Equal(6, column.
Length
);
427
Assert.Equal(maxRows, column.
Length
);
444
Assert.Equal(3, column.
Length
);
DataFrameTests.BinaryOperations.cs (3)
341
for (int i = 0; i < newCol.
Length
; i++)
346
for (int i = 0; i < addString.
Length
; i++)
352
for (int i = 0; i < addString.
Length
; i++)
DataFrameTests.Computations.cs (11)
66
for (int i = 0; i < doubleColumn.
Length
; i++)
75
for (int i = 0; i < df.Columns["Double"].
Length
; i++)
85
for (int i = 0; i < floatColumn.
Length
; i++)
94
for (int i = 0; i < df.Columns["Float"].
Length
; i++)
224
for (int i = 0; i < dateTimeColumn.
Length
; i++)
235
for (int i = 0; i < doubleColumn.
Length
; i++)
244
for (int i = 0; i < df.Columns["Double"].
Length
; i++)
254
for (int i = 0; i < floatColumn.
Length
; i++)
263
for (int i = 0; i < df.Columns["Float"].
Length
; i++)
488
for (int i = 0; i < col1.
Length
; i++)
505
for (int i = 0; i < col1.
Length
; i++)
DataFrameTests.cs (38)
71
Assert.Equal(rowCount, dataFrame.Columns[0].
Length
);
73
Assert.Equal(rowCount, dataFrame.Columns[1].
Length
);
631
for (int i = 0; i < column.
Length
; i++)
739
Assert.Equal(4, column.
Length
);
749
Assert.Equal(4, dateTimeColumn.
Length
);
779
Assert.Equal(2, column.
Length
);
823
Assert.Equal(2, strColumn.
Length
);
826
Assert.Equal(2, strColumn.
Length
);
828
Assert.Equal(2, filled.
Length
);
837
Assert.Equal(2, strColumn.
Length
);
844
Assert.Equal(3, arrowColumn.
Length
);
848
Assert.Equal(3, arrowColumn.
Length
);
850
Assert.Equal(3, arrowColumnFilled.
Length
);
884
Assert.Equal(column.
Length
, column.NullCount);
891
Assert.Equal(column.
Length
, column.NullCount);
1132
Assert.Equal(15, df.Columns["Column1"].
Length
);
1133
Assert.Equal(15, df.Columns["Column2"].
Length
);
1139
Assert.Equal(16, ret.Columns["Column1"].
Length
);
1140
Assert.Equal(16, ret.Columns["Column2"].
Length
);
1146
Assert.Equal(16, df.Columns["Column1"].
Length
);
1147
Assert.Equal(16, df.Columns["Column2"].
Length
);
1152
Assert.Equal(17, ret.Columns["Column1"].
Length
);
1153
Assert.Equal(17, ret.Columns["Column2"].
Length
);
1159
Assert.Equal(17, df.Columns["Column1"].
Length
);
1160
Assert.Equal(17, df.Columns["Column2"].
Length
);
1165
Assert.Equal(18, ret.Columns["Column1"].
Length
);
1166
Assert.Equal(18, ret.Columns["Column2"].
Length
);
1177
Assert.Equal(18, df.Columns["Column1"].
Length
);
1178
Assert.Equal(18, df.Columns["Column2"].
Length
);
1184
Assert.Equal(18, df.Columns["Column1"].
Length
);
1185
Assert.Equal(18, df.Columns["Column2"].
Length
);
1189
Assert.Equal(19, ret.Columns["Column1"].
Length
);
1190
Assert.Equal(19, ret.Columns["Column2"].
Length
);
1227
Assert.Equal(values.Length, newCol.
Length
);
1229
for (int i = 0; i < newCol.
Length
; i++)
1244
Assert.Equal(length, column.
Length
);
1245
for (long i = 0; i < column.
Length
; i++)
1371
Assert.Equal(3, filteredNullDf.Columns["col"].
Length
);
DataFrameTests.Filter.cs (2)
21
Assert.Equal(4, filtered.
Length
);
40
for (int j = 0; j < column.
Length
; j++)
DataFrameTests.Join.cs (6)
108
DataFrameColumn compareColumn = rightColumn.
Length
<= join.Rows.Count ? rightColumn.Clone(numberOfNullsToAppend: join.Rows.Count - rightColumn.
Length
) : rightColumn.Clone(mapIndices);
117
DataFrameColumn compareColumn = leftColumn.
Length
<= join.Rows.Count ? leftColumn.Clone(numberOfNullsToAppend: join.Rows.Count - leftColumn.
Length
) : leftColumn.Clone(mapIndices);
146
isEqual = joinColumn.ElementwiseEquals(leftColumn.Clone(numberOfNullsToAppend: join.Rows.Count - leftColumn.
Length
));
152
isEqual = joinColumn.ElementwiseEquals(rightColumn.Clone(numberOfNullsToAppend: join.Rows.Count - rightColumn.
Length
));
DataFrameTests.Merge.cs (4)
771
for (int i = 0; i < merge.Columns["Int_left"].
Length
; i++)
777
for (int i = 0; i < left.Columns["Int"].
Length
; i++)
787
for (int i = 0; i < merge.Columns["Int_right"].
Length
; i++)
793
for (int i = 0; i < right.Columns["Int"].
Length
; i++)
PrimitiveDataFrameColumnTests.cs (43)
100
for (long i = 0; i < dataFrameColumn1.
Length
- 1; i++)
115
Assert.Equal(1, intColumn.
Length
);
117
for (int i = 0; i < intColumn.
Length
; i++)
129
Assert.Equal(11, dataFrameColumn1.
Length
);
145
Assert.Equal(16, intColumn.
Length
);
164
Assert.Equal(5, intColumn.
Length
);
165
for (int i = 0; i < intColumn.
Length
; i++)
183
Assert.Equal(10, intColumn.
Length
);
207
Assert.Equal(5, intColumn.
Length
);
209
for (int i = 0; i < intColumn.
Length
; i++)
226
Assert.Equal(10, intColumn.
Length
);
232
for (int i = 5; i < intColumn.
Length
; i++)
267
Assert.Equal(intColumn.
Length
, copy.
Length
);
271
for (int i = 0; i < intColumn.
Length
; i++)
289
Assert.Equal(column.
Length
, clonedColumn.
Length
);
291
for (long i = 0; i < column.
Length
; i++)
309
Assert.Equal(column.
Length
, clonedColumn.
Length
);
311
for (long i = 0; i < column.
Length
; i++)
331
Assert.Equal(indicesMap.
Length
, clonedColumn.
Length
);
333
for (int i = 0; i < indicesMap.
Length
; i++)
352
Assert.Equal(indicesMap.
Length
, clonedColumn.
Length
);
354
for (int i = 0; i < indicesMap.
Length
; i++)
355
Assert.Equal(column[indicesMap[indicesMap.
Length
- 1 - i].Value], clonedColumn[i]);
373
Assert.Equal(indicesMap.
Length
, clonedColumn.
Length
);
375
for (int i = 0; i < indicesMap.
Length
; i++)
394
Assert.Equal(indicesMap.
Length
, clonedColumn.
Length
);
396
for (int i = 0; i < indicesMap.
Length
; i++)
397
Assert.Equal(column[indicesMap[indicesMap.
Length
- 1 - i].Value], clonedColumn[i]);
415
Assert.Equal(indicesMap.Length, clonedColumn.
Length
);
436
Assert.Equal(indicesMap.Length, clonedColumn.
Length
);
455
Assert.Equal(indicesMap.
Length
, clonedColumn.
Length
);
458
for (int i = 0; i < indicesMap.
Length
; i++)
492
Assert.Equal(MaxCapacityInBytes + 5, intColumn.
Length
);
504
Assert.Equal(3, filteredNullDf.Columns["col"].
Length
);
660
Assert.Equal(4, res.
Length
);
StringDataFrameColumnTests.cs (7)
30
Assert.Equal(stringColumn.
Length
, clonedColumn.
Length
);
33
for (int i = 0; i < stringColumn.
Length
; i++)
46
Assert.Equal(mapIndices.Length, clonedColumn.
Length
);
62
Assert.Equal(mapIndices.Length, clonedColumn.
Length
);
78
Assert.Equal(mapIndices.Length, clonedColumn.
Length
);
95
Assert.Equal(mapIndices.Length, clonedColumn.
Length
);
VBufferColumnTests.cs (3)
31
Assert.Equal(10, vBufferColumn.
Length
);
44
Assert.Equal(1, vBufferColumn.
Length
);
63
Assert.Equal(length, vBufferColumn.
Length
);
Microsoft.ML.Fairlearn (3)
Reductions\Moment.cs (1)
47
TotalSamples = label.
Length
;
Reductions\UtilityParity.cs (2)
107
StringDataFrameColumn posSign = new StringDataFrameColumn("sign", upperBoundDiff.
Length
);
120
StringDataFrameColumn negSign = new StringDataFrameColumn("sign", lowerBoundDiff.
Length
);