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)
189
Assert.Equal(10, df.Columns["EmptyNullBitMapColumn"].
Length
);
193
Assert.Equal(10, df.Columns["EmptyDataColumn"].
Length
);
196
Assert.Equal(10, df.Columns["EmptyDataColumn"].
Length
);
207
Assert.Equal(0, emptyDataFrame.Columns["EmptyDataAndNullColumns"].
Length
);
ArrowStringColumnTests.cs (5)
27
Assert.Equal(2, stringColumn.
Length
);
42
Assert.Equal(4, stringColumn.
Length
);
66
Assert.Equal(7, clone.
Length
);
85
for (long i = 0; i < column.
Length
; i++)
103
Assert.Equal(column.
Length
, ret.NullCount);
DataFrame.IOTests.cs (3)
730
Assert.Equal(3, dataFrame.Columns[0].
Length
);
732
for (long i = 0; i < dataFrame.Columns[0].
Length
; i++)
1163
for (long i = 0; i < emptyColumn.
Length
; i++)
DataFrameColumn.BinaryOperationTests.cs (209)
28
Assert.Equal(columnResult.
Length
, verify.Count());
41
Assert.Equal(columnResult.
Length
, verify.Count());
54
Assert.Equal(columnResult.
Length
, verify.Count());
67
Assert.Equal(columnResult.
Length
, verify.Count());
80
Assert.Equal(columnResult.
Length
, verify.Count());
93
Assert.Equal(columnResult.
Length
, verify.Count());
106
Assert.Equal(columnResult.
Length
, verify.Count());
119
Assert.Equal(columnResult.
Length
, verify.Count());
132
Assert.Equal(columnResult.
Length
, verify.Count());
145
Assert.Equal(columnResult.
Length
, verify.Count());
158
Assert.Equal(columnResult.
Length
, verify.Count());
170
Assert.Equal(columnResult.
Length
, verify.Count());
182
Assert.Equal(columnResult.
Length
, verify.Count());
194
Assert.Equal(columnResult.
Length
, verify.Count());
206
Assert.Equal(columnResult.
Length
, verify.Count());
218
Assert.Equal(columnResult.
Length
, verify.Count());
230
Assert.Equal(columnResult.
Length
, verify.Count());
242
Assert.Equal(columnResult.
Length
, verify.Count());
254
Assert.Equal(columnResult.
Length
, verify.Count());
266
Assert.Equal(columnResult.
Length
, verify.Count());
278
Assert.Equal(columnResult.
Length
, verify.Count());
290
Assert.Equal(columnResult.
Length
, verify.Count());
302
Assert.Equal(columnResult.
Length
, verify.Count());
314
Assert.Equal(columnResult.
Length
, verify.Count());
326
Assert.Equal(columnResult.
Length
, verify.Count());
338
Assert.Equal(columnResult.
Length
, verify.Count());
350
Assert.Equal(columnResult.
Length
, verify.Count());
362
Assert.Equal(columnResult.
Length
, verify.Count());
374
Assert.Equal(columnResult.
Length
, verify.Count());
386
Assert.Equal(columnResult.
Length
, verify.Count());
398
Assert.Equal(columnResult.
Length
, verify.Count());
410
Assert.Equal(columnResult.
Length
, verify.Count());
422
Assert.Equal(columnResult.
Length
, verify.Count());
435
Assert.Equal(columnResult.
Length
, verify.Count());
448
Assert.Equal(columnResult.
Length
, verify.Count());
461
Assert.Equal(columnResult.
Length
, verify.Count());
474
Assert.Equal(columnResult.
Length
, verify.Count());
487
Assert.Equal(columnResult.
Length
, verify.Count());
500
Assert.Equal(columnResult.
Length
, verify.Count());
513
Assert.Equal(columnResult.
Length
, verify.Count());
526
Assert.Equal(columnResult.
Length
, verify.Count());
539
Assert.Equal(columnResult.
Length
, verify.Count());
552
Assert.Equal(columnResult.
Length
, verify.Count());
565
Assert.Equal(columnResult.
Length
, verify.Count());
577
Assert.Equal(columnResult.
Length
, verify.Count());
589
Assert.Equal(columnResult.
Length
, verify.Count());
601
Assert.Equal(columnResult.
Length
, verify.Count());
613
Assert.Equal(columnResult.
Length
, verify.Count());
625
Assert.Equal(columnResult.
Length
, verify.Count());
637
Assert.Equal(columnResult.
Length
, verify.Count());
649
Assert.Equal(columnResult.
Length
, verify.Count());
661
Assert.Equal(columnResult.
Length
, verify.Count());
673
Assert.Equal(columnResult.
Length
, verify.Count());
685
Assert.Equal(columnResult.
Length
, verify.Count());
697
Assert.Equal(columnResult.
Length
, verify.Count());
709
Assert.Equal(columnResult.
Length
, verify.Count());
721
Assert.Equal(columnResult.
Length
, verify.Count());
733
Assert.Equal(columnResult.
Length
, verify.Count());
745
Assert.Equal(columnResult.
Length
, verify.Count());
757
Assert.Equal(columnResult.
Length
, verify.Count());
769
Assert.Equal(columnResult.
Length
, verify.Count());
781
Assert.Equal(columnResult.
Length
, verify.Count());
793
Assert.Equal(columnResult.
Length
, verify.Count());
805
Assert.Equal(columnResult.
Length
, verify.Count());
817
Assert.Equal(columnResult.
Length
, verify.Count());
829
Assert.Equal(columnResult.
Length
, verify.Count());
842
Assert.Equal(columnResult.
Length
, verify.Count());
855
Assert.Equal(columnResult.
Length
, verify.Count());
868
Assert.Equal(columnResult.
Length
, verify.Count());
881
Assert.Equal(columnResult.
Length
, verify.Count());
894
Assert.Equal(columnResult.
Length
, verify.Count());
907
Assert.Equal(columnResult.
Length
, verify.Count());
920
Assert.Equal(columnResult.
Length
, verify.Count());
933
Assert.Equal(columnResult.
Length
, verify.Count());
946
Assert.Equal(columnResult.
Length
, verify.Count());
959
Assert.Equal(columnResult.
Length
, verify.Count());
972
Assert.Equal(columnResult.
Length
, verify.Count());
984
Assert.Equal(columnResult.
Length
, verify.Count());
996
Assert.Equal(columnResult.
Length
, verify.Count());
1008
Assert.Equal(columnResult.
Length
, verify.Count());
1020
Assert.Equal(columnResult.
Length
, verify.Count());
1032
Assert.Equal(columnResult.
Length
, verify.Count());
1044
Assert.Equal(columnResult.
Length
, verify.Count());
1056
Assert.Equal(columnResult.
Length
, verify.Count());
1068
Assert.Equal(columnResult.
Length
, verify.Count());
1080
Assert.Equal(columnResult.
Length
, verify.Count());
1092
Assert.Equal(columnResult.
Length
, verify.Count());
1104
Assert.Equal(columnResult.
Length
, verify.Count());
1116
Assert.Equal(columnResult.
Length
, verify.Count());
1128
Assert.Equal(columnResult.
Length
, verify.Count());
1140
Assert.Equal(columnResult.
Length
, verify.Count());
1152
Assert.Equal(columnResult.
Length
, verify.Count());
1164
Assert.Equal(columnResult.
Length
, verify.Count());
1176
Assert.Equal(columnResult.
Length
, verify.Count());
1188
Assert.Equal(columnResult.
Length
, verify.Count());
1200
Assert.Equal(columnResult.
Length
, verify.Count());
1212
Assert.Equal(columnResult.
Length
, verify.Count());
1224
Assert.Equal(columnResult.
Length
, verify.Count());
1236
Assert.Equal(columnResult.
Length
, verify.Count());
1249
Assert.Equal(columnResult.
Length
, verify.Count());
1262
Assert.Equal(columnResult.
Length
, verify.Count());
1275
Assert.Equal(columnResult.
Length
, verify.Count());
1288
Assert.Equal(columnResult.
Length
, verify.Count());
1301
Assert.Equal(columnResult.
Length
, verify.Count());
1314
Assert.Equal(columnResult.
Length
, verify.Count());
1327
Assert.Equal(columnResult.
Length
, verify.Count());
1340
Assert.Equal(columnResult.
Length
, verify.Count());
1353
Assert.Equal(columnResult.
Length
, verify.Count());
1366
Assert.Equal(columnResult.
Length
, verify.Count());
1379
Assert.Equal(columnResult.
Length
, verify.Count());
1391
Assert.Equal(columnResult.
Length
, verify.Count());
1403
Assert.Equal(columnResult.
Length
, verify.Count());
1415
Assert.Equal(columnResult.
Length
, verify.Count());
1427
Assert.Equal(columnResult.
Length
, verify.Count());
1439
Assert.Equal(columnResult.
Length
, verify.Count());
1451
Assert.Equal(columnResult.
Length
, verify.Count());
1463
Assert.Equal(columnResult.
Length
, verify.Count());
1475
Assert.Equal(columnResult.
Length
, verify.Count());
1487
Assert.Equal(columnResult.
Length
, verify.Count());
1499
Assert.Equal(columnResult.
Length
, verify.Count());
1511
Assert.Equal(columnResult.
Length
, verify.Count());
1523
Assert.Equal(columnResult.
Length
, verify.Count());
1535
Assert.Equal(columnResult.
Length
, verify.Count());
1547
Assert.Equal(columnResult.
Length
, verify.Count());
1559
Assert.Equal(columnResult.
Length
, verify.Count());
1571
Assert.Equal(columnResult.
Length
, verify.Count());
1583
Assert.Equal(columnResult.
Length
, verify.Count());
1595
Assert.Equal(columnResult.
Length
, verify.Count());
1607
Assert.Equal(columnResult.
Length
, verify.Count());
1619
Assert.Equal(columnResult.
Length
, verify.Count());
1631
Assert.Equal(columnResult.
Length
, verify.Count());
1643
Assert.Equal(columnResult.
Length
, verify.Count());
1656
Assert.Equal(columnResult.
Length
, verify.Count());
1669
Assert.Equal(columnResult.
Length
, verify.Count());
1682
Assert.Equal(columnResult.
Length
, verify.Count());
1695
Assert.Equal(columnResult.
Length
, verify.Count());
1708
Assert.Equal(columnResult.
Length
, verify.Count());
1721
Assert.Equal(columnResult.
Length
, verify.Count());
1734
Assert.Equal(columnResult.
Length
, verify.Count());
1747
Assert.Equal(columnResult.
Length
, verify.Count());
1760
Assert.Equal(columnResult.
Length
, verify.Count());
1773
Assert.Equal(columnResult.
Length
, verify.Count());
1786
Assert.Equal(columnResult.
Length
, verify.Count());
1798
Assert.Equal(columnResult.
Length
, verify.Count());
1810
Assert.Equal(columnResult.
Length
, verify.Count());
1822
Assert.Equal(columnResult.
Length
, verify.Count());
1834
Assert.Equal(columnResult.
Length
, verify.Count());
1846
Assert.Equal(columnResult.
Length
, verify.Count());
1858
Assert.Equal(columnResult.
Length
, verify.Count());
1870
Assert.Equal(columnResult.
Length
, verify.Count());
1882
Assert.Equal(columnResult.
Length
, verify.Count());
1894
Assert.Equal(columnResult.
Length
, verify.Count());
1906
Assert.Equal(columnResult.
Length
, verify.Count());
1918
Assert.Equal(columnResult.
Length
, verify.Count());
1930
Assert.Equal(columnResult.
Length
, verify.Count());
1942
Assert.Equal(columnResult.
Length
, verify.Count());
1954
Assert.Equal(columnResult.
Length
, verify.Count());
1966
Assert.Equal(columnResult.
Length
, verify.Count());
1978
Assert.Equal(columnResult.
Length
, verify.Count());
1990
Assert.Equal(columnResult.
Length
, verify.Count());
2002
Assert.Equal(columnResult.
Length
, verify.Count());
2014
Assert.Equal(columnResult.
Length
, verify.Count());
2026
Assert.Equal(columnResult.
Length
, verify.Count());
2038
Assert.Equal(columnResult.
Length
, verify.Count());
2050
Assert.Equal(columnResult.
Length
, verify.Count());
2063
Assert.Equal(columnResult.
Length
, verify.Count());
2078
Assert.Equal(columnResult.
Length
, verify.Count());
2093
Assert.Equal(columnResult.
Length
, verify.Count());
2108
Assert.Equal(columnResult.
Length
, verify.Count());
2123
Assert.Equal(columnResult.
Length
, verify.Count());
2138
Assert.Equal(columnResult.
Length
, verify.Count());
2153
Assert.Equal(columnResult.
Length
, verify.Count());
2168
Assert.Equal(columnResult.
Length
, verify.Count());
2183
Assert.Equal(columnResult.
Length
, verify.Count());
2198
Assert.Equal(columnResult.
Length
, verify.Count());
2213
Assert.Equal(columnResult.
Length
, verify.Count());
2227
Assert.Equal(columnResult.
Length
, verify.Count());
2239
Assert.Equal(columnResult.
Length
, verify.Count());
2251
Assert.Equal(columnResult.
Length
, verify.Count());
2263
Assert.Equal(columnResult.
Length
, verify.Count());
2275
Assert.Equal(columnResult.
Length
, verify.Count());
2287
Assert.Equal(columnResult.
Length
, verify.Count());
2299
Assert.Equal(columnResult.
Length
, verify.Count());
2311
Assert.Equal(columnResult.
Length
, verify.Count());
2323
Assert.Equal(columnResult.
Length
, verify.Count());
2335
Assert.Equal(columnResult.
Length
, verify.Count());
2347
Assert.Equal(columnResult.
Length
, verify.Count());
2360
Assert.Equal(columnResult.
Length
, verify.Count());
2375
Assert.Equal(columnResult.
Length
, verify.Count());
2390
Assert.Equal(columnResult.
Length
, verify.Count());
2405
Assert.Equal(columnResult.
Length
, verify.Count());
2420
Assert.Equal(columnResult.
Length
, verify.Count());
2435
Assert.Equal(columnResult.
Length
, verify.Count());
2450
Assert.Equal(columnResult.
Length
, verify.Count());
2465
Assert.Equal(columnResult.
Length
, verify.Count());
2480
Assert.Equal(columnResult.
Length
, verify.Count());
2495
Assert.Equal(columnResult.
Length
, verify.Count());
2510
Assert.Equal(columnResult.
Length
, verify.Count());
2524
Assert.Equal(columnResult.
Length
, verify.Count());
2536
Assert.Equal(columnResult.
Length
, verify.Count());
2548
Assert.Equal(columnResult.
Length
, verify.Count());
2560
Assert.Equal(columnResult.
Length
, verify.Count());
2572
Assert.Equal(columnResult.
Length
, verify.Count());
2584
Assert.Equal(columnResult.
Length
, verify.Count());
2596
Assert.Equal(columnResult.
Length
, verify.Count());
2608
Assert.Equal(columnResult.
Length
, verify.Count());
2620
Assert.Equal(columnResult.
Length
, verify.Count());
2632
Assert.Equal(columnResult.
Length
, verify.Count());
2644
Assert.Equal(columnResult.
Length
, verify.Count());
DataFrameIDataViewTests.cs (6)
305
Assert.Equal(rowSize, newDf.Columns[i].
Length
);
327
Assert.Equal(5, newDf.Columns[i].
Length
);
386
Assert.Equal(6, column.
Length
);
403
Assert.Equal(6, column.
Length
);
421
Assert.Equal(maxRows, column.
Length
);
438
Assert.Equal(3, column.
Length
);
DataFrameTests.BinaryOperations.cs (3)
335
for (int i = 0; i < newCol.
Length
; i++)
340
for (int i = 0; i < addString.
Length
; i++)
346
for (int i = 0; i < addString.
Length
; i++)
DataFrameTests.Computations.cs (11)
64
for (int i = 0; i < doubleColumn.
Length
; i++)
73
for (int i = 0; i < df.Columns["Double"].
Length
; i++)
83
for (int i = 0; i < floatColumn.
Length
; i++)
92
for (int i = 0; i < df.Columns["Float"].
Length
; i++)
222
for (int i = 0; i < dateTimeColumn.
Length
; i++)
233
for (int i = 0; i < doubleColumn.
Length
; i++)
242
for (int i = 0; i < df.Columns["Double"].
Length
; i++)
252
for (int i = 0; i < floatColumn.
Length
; i++)
261
for (int i = 0; i < df.Columns["Float"].
Length
; i++)
486
for (int i = 0; i < col1.
Length
; i++)
503
for (int i = 0; i < col1.
Length
; i++)
DataFrameTests.cs (38)
69
Assert.Equal(rowCount, dataFrame.Columns[0].
Length
);
71
Assert.Equal(rowCount, dataFrame.Columns[1].
Length
);
629
for (int i = 0; i < column.
Length
; i++)
737
Assert.Equal(4, column.
Length
);
747
Assert.Equal(4, dateTimeColumn.
Length
);
777
Assert.Equal(2, column.
Length
);
821
Assert.Equal(2, strColumn.
Length
);
824
Assert.Equal(2, strColumn.
Length
);
826
Assert.Equal(2, filled.
Length
);
835
Assert.Equal(2, strColumn.
Length
);
842
Assert.Equal(3, arrowColumn.
Length
);
846
Assert.Equal(3, arrowColumn.
Length
);
848
Assert.Equal(3, arrowColumnFilled.
Length
);
882
Assert.Equal(column.
Length
, column.NullCount);
889
Assert.Equal(column.
Length
, column.NullCount);
1130
Assert.Equal(15, df.Columns["Column1"].
Length
);
1131
Assert.Equal(15, df.Columns["Column2"].
Length
);
1137
Assert.Equal(16, ret.Columns["Column1"].
Length
);
1138
Assert.Equal(16, ret.Columns["Column2"].
Length
);
1144
Assert.Equal(16, df.Columns["Column1"].
Length
);
1145
Assert.Equal(16, df.Columns["Column2"].
Length
);
1150
Assert.Equal(17, ret.Columns["Column1"].
Length
);
1151
Assert.Equal(17, ret.Columns["Column2"].
Length
);
1157
Assert.Equal(17, df.Columns["Column1"].
Length
);
1158
Assert.Equal(17, df.Columns["Column2"].
Length
);
1163
Assert.Equal(18, ret.Columns["Column1"].
Length
);
1164
Assert.Equal(18, ret.Columns["Column2"].
Length
);
1175
Assert.Equal(18, df.Columns["Column1"].
Length
);
1176
Assert.Equal(18, df.Columns["Column2"].
Length
);
1182
Assert.Equal(18, df.Columns["Column1"].
Length
);
1183
Assert.Equal(18, df.Columns["Column2"].
Length
);
1187
Assert.Equal(19, ret.Columns["Column1"].
Length
);
1188
Assert.Equal(19, ret.Columns["Column2"].
Length
);
1225
Assert.Equal(values.Length, newCol.
Length
);
1227
for (int i = 0; i < newCol.
Length
; i++)
1242
Assert.Equal(length, column.
Length
);
1243
for (long i = 0; i < column.
Length
; i++)
1369
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)
94
for (long i = 0; i < dataFrameColumn1.
Length
- 1; i++)
109
Assert.Equal(1, intColumn.
Length
);
111
for (int i = 0; i < intColumn.
Length
; i++)
123
Assert.Equal(11, dataFrameColumn1.
Length
);
139
Assert.Equal(16, intColumn.
Length
);
158
Assert.Equal(5, intColumn.
Length
);
159
for (int i = 0; i < intColumn.
Length
; i++)
177
Assert.Equal(10, intColumn.
Length
);
201
Assert.Equal(5, intColumn.
Length
);
203
for (int i = 0; i < intColumn.
Length
; i++)
220
Assert.Equal(10, intColumn.
Length
);
226
for (int i = 5; i < intColumn.
Length
; i++)
261
Assert.Equal(intColumn.
Length
, copy.
Length
);
265
for (int i = 0; i < intColumn.
Length
; i++)
283
Assert.Equal(column.
Length
, clonedColumn.
Length
);
285
for (long i = 0; i < column.
Length
; i++)
303
Assert.Equal(column.
Length
, clonedColumn.
Length
);
305
for (long i = 0; i < column.
Length
; i++)
325
Assert.Equal(indicesMap.
Length
, clonedColumn.
Length
);
327
for (int i = 0; i < indicesMap.
Length
; i++)
346
Assert.Equal(indicesMap.
Length
, clonedColumn.
Length
);
348
for (int i = 0; i < indicesMap.
Length
; i++)
349
Assert.Equal(column[indicesMap[indicesMap.
Length
- 1 - i].Value], clonedColumn[i]);
367
Assert.Equal(indicesMap.
Length
, clonedColumn.
Length
);
369
for (int i = 0; i < indicesMap.
Length
; i++)
388
Assert.Equal(indicesMap.
Length
, clonedColumn.
Length
);
390
for (int i = 0; i < indicesMap.
Length
; i++)
391
Assert.Equal(column[indicesMap[indicesMap.
Length
- 1 - i].Value], clonedColumn[i]);
409
Assert.Equal(indicesMap.Length, clonedColumn.
Length
);
430
Assert.Equal(indicesMap.Length, clonedColumn.
Length
);
449
Assert.Equal(indicesMap.
Length
, clonedColumn.
Length
);
452
for (int i = 0; i < indicesMap.
Length
; i++)
486
Assert.Equal(MaxCapacityInBytes + 5, intColumn.
Length
);
498
Assert.Equal(3, filteredNullDf.Columns["col"].
Length
);
654
Assert.Equal(4, res.
Length
);
StringDataFrameColumnTests.cs (7)
24
Assert.Equal(stringColumn.
Length
, clonedColumn.
Length
);
27
for (int i = 0; i < stringColumn.
Length
; i++)
40
Assert.Equal(mapIndices.Length, clonedColumn.
Length
);
56
Assert.Equal(mapIndices.Length, clonedColumn.
Length
);
72
Assert.Equal(mapIndices.Length, clonedColumn.
Length
);
89
Assert.Equal(mapIndices.Length, clonedColumn.
Length
);
VBufferColumnTests.cs (3)
25
Assert.Equal(10, vBufferColumn.
Length
);
38
Assert.Equal(1, vBufferColumn.
Length
);
57
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
);