9 writes to Length
Microsoft.Data.Analysis (9)
DataFrameColumn.cs (1)
29Length = length;
DataFrameColumns\ArrowStringDataFrameColumn.cs (1)
194Length++;
DataFrameColumns\StringDataFrameColumn.cs (1)
79Length++;
DataFrameColumns\VBufferDataFrameColumn.cs (1)
79Length++;
PrimitiveDataFrameColumn.cs (5)
38Length = _columnContainer.Length; 44Length = _columnContainer.Length; 286Length = _columnContainer.Length; 292Length++; 298Length += count;
507 references to Length
Microsoft.Data.Analysis (160)
DataFrame.cs (3)
402if (Columns[i].Length != rowCount) 496long length = column.Length; 661if (column.Length == Rows.Count)
DataFrame.IO.cs (2)
474Int64DataFrameColumn indexColumn = new Int64DataFrameColumn("IndexColumn", columns[0].Length); 475for (long i = 0; i < columns[0].Length; i++)
DataFrameColumn.cs (11)
283for (int i = 0; i < this.Length; i++) 419dataColumn[1] = (Length - NullCount).ToString(); 440var numberOfRows = Math.Min(Length, rowsToShow); 447if (numberOfRows < Length) 449sb.Append(String.Format(Strings.AmountOfRowsShown, rowsToShow, Length)); 478long i = ascending ? columnNullIndices.Length : columnSortIndices.Length - 1; 481i -= columnNullIndices.Length; 517var start = putNullValuesLast ? columnSortIndices.Length - columnNullIndices.Length : 0; 518for (long j = 0; j < columnNullIndices.Length; j++)
DataFrameColumnCollection.cs (4)
77RowCount = column.Length; 79else if (column.Length != RowCount) 92RowCount = column.Length; 106if (RowCount > 0 && column.Length != RowCount)
DataFrameColumns\ArrowStringDataFrameColumn.cs (27)
77if ((ulong)index > (ulong)Length) 93if ((ulong)index > (ulong)Length) 112if (((curBitMap >> (indexInBuffer & 7)) & 1) == 0 && indexInBuffer < Length - 1 && NullCount > 0) 120if (((curBitMap >> (indexInBuffer & 7)) & 1) == 1 && indexInBuffer < Length) 125else if (indexInBuffer == Length - 1) 216SetValidityBit(Length - 1, !value.IsEmpty); 222if (rowIndex >= Length) 316for (long i = 0; i < Length; i++) 331if (Length == 0) 383for (long i = 0; i < Length; i++) 421if (boolColumn.Length > Length) 425for (long i = 0; i < boolColumn.Length; i++) 438for (long i = 0; i < mapIndices.Length; i++) 440int? index = mapIndices[invertMapIndices ? mapIndices.Length - 1 - i : i]; 458for (long i = 0; i < mapIndices.Length; i++) 460long? index = mapIndices[invertMapIndices ? mapIndices.Length - 1 - i : i]; 495for (long i = 0; i < Length; i++) 539for (long i = 0; i < Length; i++) 568for (long i = 0; i < Length; i++) 602PrimitiveDataFrameColumn<bool> ret = new PrimitiveDataFrameColumn<bool>(Name, Length); 605for (long i = 0; i < Length; i++) 612for (long i = 0; i < Length; i++) 643PrimitiveDataFrameColumn<bool> ret = new PrimitiveDataFrameColumn<bool>(Name, Length); 646for (long i = 0; i < Length; i++) 653for (long i = 0; i < Length; i++) 688for (long i = 0; i < Length; i++)
DataFrameColumns\StringDataFrameColumn.cs (20)
59if (length < Length) 62for (long i = Length; i < length; i++) 92for (long i = 0; i < column.Length; i++) 105if (rowIndex >= Length) 260var columnSortIndices = new Int64DataFrameColumn("SortIndices", Length); 290StringDataFrameColumn ret = new StringDataFrameColumn(Name, Length); 291for (long i = 0; i < Length; i++) 328if (boolColumn.Length > Length) 331for (long i = 0; i < boolColumn.Length; i++) 343var ret = new StringDataFrameColumn(Name, mapIndices.Length); 353long index = invertMapIndices ? mapIndices.Length - 1 - rowIndex : rowIndex; 365var ret = new StringDataFrameColumn(Name, mapIndices.Length); 375long index = invertMapIndices ? mapIndices.Length - 1 - rowIndex : rowIndex; 414for (long i = 0; i < Length; i++) 454for (long i = 0; i < column.Length; i++) 478var ret = new StringDataFrameColumn(Name, Length - NullCount); 481for (long i = 0; i < Length; i++) 515if (Length > row) 519else if (Length == row)
DataFrameColumns\VBufferDataFrameColumn.cs (14)
61if (length < Length) 64for (long i = Length; i < length; i++) 84if (rowIndex >= Length) 198if (Length > row) 202else if (Length == row) 214if (boolColumn.Length > Length) 217for (long i = 0; i < boolColumn.Length; i++) 229var ret = new VBufferDataFrameColumn<T>(Name, mapIndices.Length); 239long index = invertMapIndices ? mapIndices.Length - 1 - rowIndex : rowIndex; 251var ret = new VBufferDataFrameColumn<T>(Name, mapIndices.Length); 261long index = invertMapIndices ? mapIndices.Length - 1 - rowIndex : rowIndex; 305var ret = new VBufferDataFrameColumn<T>(Name, Length); 307for (long i = 0; i < Length; i++)
GroupBy.cs (13)
180ret.SetTableRowCount(firstColumn.Length); 223ret.SetTableRowCount(firstColumn.Length); 261long retColumnLength = retColumn.Length; 264if (firstColumn.Length <= retColumnLength) 277ret.SetTableRowCount(firstColumn.Length); 317long retColumnLength = retColumn.Length; 318if (firstColumn.Length <= retColumnLength) 331ret.SetTableRowCount(firstColumn.Length); 378ret.SetTableRowCount(firstColumn.Length); 406ret.SetTableRowCount(firstColumn.Length); 434ret.SetTableRowCount(firstColumn.Length); 462ret.SetTableRowCount(firstColumn.Length); 491ret.SetTableRowCount(firstColumn.Length);
PrimitiveDataFrameColumn.BinaryOperationAPIs.ExplodedColumns.cs (6)
8767if (column.Length != Length) 8791if (column.Length != Length) 8815if (column.Length != Length)
PrimitiveDataFrameColumn.BinaryOperationImplementations.Exploded.cs (14)
20if (column.Length != Length) 50if (column.Length != Length) 80if (column.Length != Length) 110if (column.Length != Length) 140if (column.Length != Length) 170if (column.Length != Length) 200if (column.Length != Length)
PrimitiveDataFrameColumn.cs (26)
199if (startIndex >= Length) 209if (startIndex >= Length) 215long endIndex = Math.Min(Length, startIndex + length); 259var notNullValuesCount = Length - NullCount; 278if (Length == 0) 280return (double)Convert.ChangeType((T)Sum(), typeof(double)) / (Length - NullCount); 362var ret = CreateNewColumn(Name, Length - NullCount); 462if (boolColumn.Length > Length) 466for (long i = 0; i < boolColumn.Length; i++) 518while (rows.MoveNext() && numberOfRows < Length) 683var resultColumn = new PrimitiveDataFrameColumn<TResult>("Result", Length); 699for (long i = 0; i < ret.Length; i++) 732for (long i = 0; i < Length; i++) 776mean = (float)Convert.ChangeType(Sum(), typeof(float)) / Length; 783column.Append(Length - NullCount); 904if (Length > row) 908else if (Length == row) 930var ret = new BooleanDataFrameColumn(Name, Length); 932for (long i = 0; i < Length; i++) 942var ret = new BooleanDataFrameColumn(Name, Length); 944for (long i = 0; i < Length; i++) 955if (column.Length != Length) 1282if (column.Length != Length)
PrimitiveDataFrameColumn.Sort.cs (1)
101Int64DataFrameColumn columnSortIndices = new Int64DataFrameColumn("SortIndices", Length);
StringDataFrameColumn.BinaryOperations.cs (19)
18if (Length != column.Length) 23for (long i = 0; i < Length; i++) 78if (left.Length != right.Length) 82PrimitiveDataFrameColumn<bool> ret = new PrimitiveDataFrameColumn<bool>(left.Name, left.Length); 83for (long i = 0; i < left.Length; i++) 102PrimitiveDataFrameColumn<bool> ret = new PrimitiveDataFrameColumn<bool>(Name, Length); 103for (long i = 0; i < Length; i++) 122if (left.Length != column.Length) 126PrimitiveDataFrameColumn<bool> ret = new PrimitiveDataFrameColumn<bool>(left.Name, left.Length); 127for (long i = 0; i < left.Length; i++) 136PrimitiveDataFrameColumn<bool> ret = new PrimitiveDataFrameColumn<bool>(Name, Length); 137for (long i = 0; i < Length; i++) 146PrimitiveDataFrameColumn<bool> ret = new PrimitiveDataFrameColumn<bool>(Name, Length); 147for (long i = 0; i < Length; i++) 156PrimitiveDataFrameColumn<bool> ret = new PrimitiveDataFrameColumn<bool>(Name, Length); 157for (long i = 0; i < Length; i++)
Microsoft.Data.Analysis.Tests (344)
ArrowIntegrationTests.cs (4)
189Assert.Equal(10, df.Columns["EmptyNullBitMapColumn"].Length); 193Assert.Equal(10, df.Columns["EmptyDataColumn"].Length); 196Assert.Equal(10, df.Columns["EmptyDataColumn"].Length); 207Assert.Equal(0, emptyDataFrame.Columns["EmptyDataAndNullColumns"].Length);
ArrowStringColumnTests.cs (5)
27Assert.Equal(2, stringColumn.Length); 42Assert.Equal(4, stringColumn.Length); 66Assert.Equal(7, clone.Length); 85for (long i = 0; i < column.Length; i++) 103Assert.Equal(column.Length, ret.NullCount);
DataFrame.IOTests.cs (3)
730Assert.Equal(3, dataFrame.Columns[0].Length); 732for (long i = 0; i < dataFrame.Columns[0].Length; i++) 1163for (long i = 0; i < emptyColumn.Length; i++)
DataFrameColumn.BinaryOperationTests.cs (209)
28Assert.Equal(columnResult.Length, verify.Count()); 41Assert.Equal(columnResult.Length, verify.Count()); 54Assert.Equal(columnResult.Length, verify.Count()); 67Assert.Equal(columnResult.Length, verify.Count()); 80Assert.Equal(columnResult.Length, verify.Count()); 93Assert.Equal(columnResult.Length, verify.Count()); 106Assert.Equal(columnResult.Length, verify.Count()); 119Assert.Equal(columnResult.Length, verify.Count()); 132Assert.Equal(columnResult.Length, verify.Count()); 145Assert.Equal(columnResult.Length, verify.Count()); 158Assert.Equal(columnResult.Length, verify.Count()); 170Assert.Equal(columnResult.Length, verify.Count()); 182Assert.Equal(columnResult.Length, verify.Count()); 194Assert.Equal(columnResult.Length, verify.Count()); 206Assert.Equal(columnResult.Length, verify.Count()); 218Assert.Equal(columnResult.Length, verify.Count()); 230Assert.Equal(columnResult.Length, verify.Count()); 242Assert.Equal(columnResult.Length, verify.Count()); 254Assert.Equal(columnResult.Length, verify.Count()); 266Assert.Equal(columnResult.Length, verify.Count()); 278Assert.Equal(columnResult.Length, verify.Count()); 290Assert.Equal(columnResult.Length, verify.Count()); 302Assert.Equal(columnResult.Length, verify.Count()); 314Assert.Equal(columnResult.Length, verify.Count()); 326Assert.Equal(columnResult.Length, verify.Count()); 338Assert.Equal(columnResult.Length, verify.Count()); 350Assert.Equal(columnResult.Length, verify.Count()); 362Assert.Equal(columnResult.Length, verify.Count()); 374Assert.Equal(columnResult.Length, verify.Count()); 386Assert.Equal(columnResult.Length, verify.Count()); 398Assert.Equal(columnResult.Length, verify.Count()); 410Assert.Equal(columnResult.Length, verify.Count()); 422Assert.Equal(columnResult.Length, verify.Count()); 435Assert.Equal(columnResult.Length, verify.Count()); 448Assert.Equal(columnResult.Length, verify.Count()); 461Assert.Equal(columnResult.Length, verify.Count()); 474Assert.Equal(columnResult.Length, verify.Count()); 487Assert.Equal(columnResult.Length, verify.Count()); 500Assert.Equal(columnResult.Length, verify.Count()); 513Assert.Equal(columnResult.Length, verify.Count()); 526Assert.Equal(columnResult.Length, verify.Count()); 539Assert.Equal(columnResult.Length, verify.Count()); 552Assert.Equal(columnResult.Length, verify.Count()); 565Assert.Equal(columnResult.Length, verify.Count()); 577Assert.Equal(columnResult.Length, verify.Count()); 589Assert.Equal(columnResult.Length, verify.Count()); 601Assert.Equal(columnResult.Length, verify.Count()); 613Assert.Equal(columnResult.Length, verify.Count()); 625Assert.Equal(columnResult.Length, verify.Count()); 637Assert.Equal(columnResult.Length, verify.Count()); 649Assert.Equal(columnResult.Length, verify.Count()); 661Assert.Equal(columnResult.Length, verify.Count()); 673Assert.Equal(columnResult.Length, verify.Count()); 685Assert.Equal(columnResult.Length, verify.Count()); 697Assert.Equal(columnResult.Length, verify.Count()); 709Assert.Equal(columnResult.Length, verify.Count()); 721Assert.Equal(columnResult.Length, verify.Count()); 733Assert.Equal(columnResult.Length, verify.Count()); 745Assert.Equal(columnResult.Length, verify.Count()); 757Assert.Equal(columnResult.Length, verify.Count()); 769Assert.Equal(columnResult.Length, verify.Count()); 781Assert.Equal(columnResult.Length, verify.Count()); 793Assert.Equal(columnResult.Length, verify.Count()); 805Assert.Equal(columnResult.Length, verify.Count()); 817Assert.Equal(columnResult.Length, verify.Count()); 829Assert.Equal(columnResult.Length, verify.Count()); 842Assert.Equal(columnResult.Length, verify.Count()); 855Assert.Equal(columnResult.Length, verify.Count()); 868Assert.Equal(columnResult.Length, verify.Count()); 881Assert.Equal(columnResult.Length, verify.Count()); 894Assert.Equal(columnResult.Length, verify.Count()); 907Assert.Equal(columnResult.Length, verify.Count()); 920Assert.Equal(columnResult.Length, verify.Count()); 933Assert.Equal(columnResult.Length, verify.Count()); 946Assert.Equal(columnResult.Length, verify.Count()); 959Assert.Equal(columnResult.Length, verify.Count()); 972Assert.Equal(columnResult.Length, verify.Count()); 984Assert.Equal(columnResult.Length, verify.Count()); 996Assert.Equal(columnResult.Length, verify.Count()); 1008Assert.Equal(columnResult.Length, verify.Count()); 1020Assert.Equal(columnResult.Length, verify.Count()); 1032Assert.Equal(columnResult.Length, verify.Count()); 1044Assert.Equal(columnResult.Length, verify.Count()); 1056Assert.Equal(columnResult.Length, verify.Count()); 1068Assert.Equal(columnResult.Length, verify.Count()); 1080Assert.Equal(columnResult.Length, verify.Count()); 1092Assert.Equal(columnResult.Length, verify.Count()); 1104Assert.Equal(columnResult.Length, verify.Count()); 1116Assert.Equal(columnResult.Length, verify.Count()); 1128Assert.Equal(columnResult.Length, verify.Count()); 1140Assert.Equal(columnResult.Length, verify.Count()); 1152Assert.Equal(columnResult.Length, verify.Count()); 1164Assert.Equal(columnResult.Length, verify.Count()); 1176Assert.Equal(columnResult.Length, verify.Count()); 1188Assert.Equal(columnResult.Length, verify.Count()); 1200Assert.Equal(columnResult.Length, verify.Count()); 1212Assert.Equal(columnResult.Length, verify.Count()); 1224Assert.Equal(columnResult.Length, verify.Count()); 1236Assert.Equal(columnResult.Length, verify.Count()); 1249Assert.Equal(columnResult.Length, verify.Count()); 1262Assert.Equal(columnResult.Length, verify.Count()); 1275Assert.Equal(columnResult.Length, verify.Count()); 1288Assert.Equal(columnResult.Length, verify.Count()); 1301Assert.Equal(columnResult.Length, verify.Count()); 1314Assert.Equal(columnResult.Length, verify.Count()); 1327Assert.Equal(columnResult.Length, verify.Count()); 1340Assert.Equal(columnResult.Length, verify.Count()); 1353Assert.Equal(columnResult.Length, verify.Count()); 1366Assert.Equal(columnResult.Length, verify.Count()); 1379Assert.Equal(columnResult.Length, verify.Count()); 1391Assert.Equal(columnResult.Length, verify.Count()); 1403Assert.Equal(columnResult.Length, verify.Count()); 1415Assert.Equal(columnResult.Length, verify.Count()); 1427Assert.Equal(columnResult.Length, verify.Count()); 1439Assert.Equal(columnResult.Length, verify.Count()); 1451Assert.Equal(columnResult.Length, verify.Count()); 1463Assert.Equal(columnResult.Length, verify.Count()); 1475Assert.Equal(columnResult.Length, verify.Count()); 1487Assert.Equal(columnResult.Length, verify.Count()); 1499Assert.Equal(columnResult.Length, verify.Count()); 1511Assert.Equal(columnResult.Length, verify.Count()); 1523Assert.Equal(columnResult.Length, verify.Count()); 1535Assert.Equal(columnResult.Length, verify.Count()); 1547Assert.Equal(columnResult.Length, verify.Count()); 1559Assert.Equal(columnResult.Length, verify.Count()); 1571Assert.Equal(columnResult.Length, verify.Count()); 1583Assert.Equal(columnResult.Length, verify.Count()); 1595Assert.Equal(columnResult.Length, verify.Count()); 1607Assert.Equal(columnResult.Length, verify.Count()); 1619Assert.Equal(columnResult.Length, verify.Count()); 1631Assert.Equal(columnResult.Length, verify.Count()); 1643Assert.Equal(columnResult.Length, verify.Count()); 1656Assert.Equal(columnResult.Length, verify.Count()); 1669Assert.Equal(columnResult.Length, verify.Count()); 1682Assert.Equal(columnResult.Length, verify.Count()); 1695Assert.Equal(columnResult.Length, verify.Count()); 1708Assert.Equal(columnResult.Length, verify.Count()); 1721Assert.Equal(columnResult.Length, verify.Count()); 1734Assert.Equal(columnResult.Length, verify.Count()); 1747Assert.Equal(columnResult.Length, verify.Count()); 1760Assert.Equal(columnResult.Length, verify.Count()); 1773Assert.Equal(columnResult.Length, verify.Count()); 1786Assert.Equal(columnResult.Length, verify.Count()); 1798Assert.Equal(columnResult.Length, verify.Count()); 1810Assert.Equal(columnResult.Length, verify.Count()); 1822Assert.Equal(columnResult.Length, verify.Count()); 1834Assert.Equal(columnResult.Length, verify.Count()); 1846Assert.Equal(columnResult.Length, verify.Count()); 1858Assert.Equal(columnResult.Length, verify.Count()); 1870Assert.Equal(columnResult.Length, verify.Count()); 1882Assert.Equal(columnResult.Length, verify.Count()); 1894Assert.Equal(columnResult.Length, verify.Count()); 1906Assert.Equal(columnResult.Length, verify.Count()); 1918Assert.Equal(columnResult.Length, verify.Count()); 1930Assert.Equal(columnResult.Length, verify.Count()); 1942Assert.Equal(columnResult.Length, verify.Count()); 1954Assert.Equal(columnResult.Length, verify.Count()); 1966Assert.Equal(columnResult.Length, verify.Count()); 1978Assert.Equal(columnResult.Length, verify.Count()); 1990Assert.Equal(columnResult.Length, verify.Count()); 2002Assert.Equal(columnResult.Length, verify.Count()); 2014Assert.Equal(columnResult.Length, verify.Count()); 2026Assert.Equal(columnResult.Length, verify.Count()); 2038Assert.Equal(columnResult.Length, verify.Count()); 2050Assert.Equal(columnResult.Length, verify.Count()); 2063Assert.Equal(columnResult.Length, verify.Count()); 2078Assert.Equal(columnResult.Length, verify.Count()); 2093Assert.Equal(columnResult.Length, verify.Count()); 2108Assert.Equal(columnResult.Length, verify.Count()); 2123Assert.Equal(columnResult.Length, verify.Count()); 2138Assert.Equal(columnResult.Length, verify.Count()); 2153Assert.Equal(columnResult.Length, verify.Count()); 2168Assert.Equal(columnResult.Length, verify.Count()); 2183Assert.Equal(columnResult.Length, verify.Count()); 2198Assert.Equal(columnResult.Length, verify.Count()); 2213Assert.Equal(columnResult.Length, verify.Count()); 2227Assert.Equal(columnResult.Length, verify.Count()); 2239Assert.Equal(columnResult.Length, verify.Count()); 2251Assert.Equal(columnResult.Length, verify.Count()); 2263Assert.Equal(columnResult.Length, verify.Count()); 2275Assert.Equal(columnResult.Length, verify.Count()); 2287Assert.Equal(columnResult.Length, verify.Count()); 2299Assert.Equal(columnResult.Length, verify.Count()); 2311Assert.Equal(columnResult.Length, verify.Count()); 2323Assert.Equal(columnResult.Length, verify.Count()); 2335Assert.Equal(columnResult.Length, verify.Count()); 2347Assert.Equal(columnResult.Length, verify.Count()); 2360Assert.Equal(columnResult.Length, verify.Count()); 2375Assert.Equal(columnResult.Length, verify.Count()); 2390Assert.Equal(columnResult.Length, verify.Count()); 2405Assert.Equal(columnResult.Length, verify.Count()); 2420Assert.Equal(columnResult.Length, verify.Count()); 2435Assert.Equal(columnResult.Length, verify.Count()); 2450Assert.Equal(columnResult.Length, verify.Count()); 2465Assert.Equal(columnResult.Length, verify.Count()); 2480Assert.Equal(columnResult.Length, verify.Count()); 2495Assert.Equal(columnResult.Length, verify.Count()); 2510Assert.Equal(columnResult.Length, verify.Count()); 2524Assert.Equal(columnResult.Length, verify.Count()); 2536Assert.Equal(columnResult.Length, verify.Count()); 2548Assert.Equal(columnResult.Length, verify.Count()); 2560Assert.Equal(columnResult.Length, verify.Count()); 2572Assert.Equal(columnResult.Length, verify.Count()); 2584Assert.Equal(columnResult.Length, verify.Count()); 2596Assert.Equal(columnResult.Length, verify.Count()); 2608Assert.Equal(columnResult.Length, verify.Count()); 2620Assert.Equal(columnResult.Length, verify.Count()); 2632Assert.Equal(columnResult.Length, verify.Count()); 2644Assert.Equal(columnResult.Length, verify.Count());
DataFrameIDataViewTests.cs (6)
305Assert.Equal(rowSize, newDf.Columns[i].Length); 327Assert.Equal(5, newDf.Columns[i].Length); 386Assert.Equal(6, column.Length); 403Assert.Equal(6, column.Length); 421Assert.Equal(maxRows, column.Length); 438Assert.Equal(3, column.Length);
DataFrameTests.BinaryOperations.cs (3)
335for (int i = 0; i < newCol.Length; i++) 340for (int i = 0; i < addString.Length; i++) 346for (int i = 0; i < addString.Length; i++)
DataFrameTests.Computations.cs (11)
64for (int i = 0; i < doubleColumn.Length; i++) 73for (int i = 0; i < df.Columns["Double"].Length; i++) 83for (int i = 0; i < floatColumn.Length; i++) 92for (int i = 0; i < df.Columns["Float"].Length; i++) 222for (int i = 0; i < dateTimeColumn.Length; i++) 233for (int i = 0; i < doubleColumn.Length; i++) 242for (int i = 0; i < df.Columns["Double"].Length; i++) 252for (int i = 0; i < floatColumn.Length; i++) 261for (int i = 0; i < df.Columns["Float"].Length; i++) 486for (int i = 0; i < col1.Length; i++) 503for (int i = 0; i < col1.Length; i++)
DataFrameTests.cs (38)
69Assert.Equal(rowCount, dataFrame.Columns[0].Length); 71Assert.Equal(rowCount, dataFrame.Columns[1].Length); 629for (int i = 0; i < column.Length; i++) 737Assert.Equal(4, column.Length); 747Assert.Equal(4, dateTimeColumn.Length); 777Assert.Equal(2, column.Length); 821Assert.Equal(2, strColumn.Length); 824Assert.Equal(2, strColumn.Length); 826Assert.Equal(2, filled.Length); 835Assert.Equal(2, strColumn.Length); 842Assert.Equal(3, arrowColumn.Length); 846Assert.Equal(3, arrowColumn.Length); 848Assert.Equal(3, arrowColumnFilled.Length); 882Assert.Equal(column.Length, column.NullCount); 889Assert.Equal(column.Length, column.NullCount); 1130Assert.Equal(15, df.Columns["Column1"].Length); 1131Assert.Equal(15, df.Columns["Column2"].Length); 1137Assert.Equal(16, ret.Columns["Column1"].Length); 1138Assert.Equal(16, ret.Columns["Column2"].Length); 1144Assert.Equal(16, df.Columns["Column1"].Length); 1145Assert.Equal(16, df.Columns["Column2"].Length); 1150Assert.Equal(17, ret.Columns["Column1"].Length); 1151Assert.Equal(17, ret.Columns["Column2"].Length); 1157Assert.Equal(17, df.Columns["Column1"].Length); 1158Assert.Equal(17, df.Columns["Column2"].Length); 1163Assert.Equal(18, ret.Columns["Column1"].Length); 1164Assert.Equal(18, ret.Columns["Column2"].Length); 1175Assert.Equal(18, df.Columns["Column1"].Length); 1176Assert.Equal(18, df.Columns["Column2"].Length); 1182Assert.Equal(18, df.Columns["Column1"].Length); 1183Assert.Equal(18, df.Columns["Column2"].Length); 1187Assert.Equal(19, ret.Columns["Column1"].Length); 1188Assert.Equal(19, ret.Columns["Column2"].Length); 1225Assert.Equal(values.Length, newCol.Length); 1227for (int i = 0; i < newCol.Length; i++) 1242Assert.Equal(length, column.Length); 1243for (long i = 0; i < column.Length; i++) 1369Assert.Equal(3, filteredNullDf.Columns["col"].Length);
DataFrameTests.Filter.cs (2)
21Assert.Equal(4, filtered.Length); 40for (int j = 0; j < column.Length; j++)
DataFrameTests.Join.cs (6)
108DataFrameColumn compareColumn = rightColumn.Length <= join.Rows.Count ? rightColumn.Clone(numberOfNullsToAppend: join.Rows.Count - rightColumn.Length) : rightColumn.Clone(mapIndices); 117DataFrameColumn compareColumn = leftColumn.Length <= join.Rows.Count ? leftColumn.Clone(numberOfNullsToAppend: join.Rows.Count - leftColumn.Length) : leftColumn.Clone(mapIndices); 146isEqual = joinColumn.ElementwiseEquals(leftColumn.Clone(numberOfNullsToAppend: join.Rows.Count - leftColumn.Length)); 152isEqual = joinColumn.ElementwiseEquals(rightColumn.Clone(numberOfNullsToAppend: join.Rows.Count - rightColumn.Length));
DataFrameTests.Merge.cs (4)
771for (int i = 0; i < merge.Columns["Int_left"].Length; i++) 777for (int i = 0; i < left.Columns["Int"].Length; i++) 787for (int i = 0; i < merge.Columns["Int_right"].Length; i++) 793for (int i = 0; i < right.Columns["Int"].Length; i++)
PrimitiveDataFrameColumnTests.cs (43)
94for (long i = 0; i < dataFrameColumn1.Length - 1; i++) 109Assert.Equal(1, intColumn.Length); 111for (int i = 0; i < intColumn.Length; i++) 123Assert.Equal(11, dataFrameColumn1.Length); 139Assert.Equal(16, intColumn.Length); 158Assert.Equal(5, intColumn.Length); 159for (int i = 0; i < intColumn.Length; i++) 177Assert.Equal(10, intColumn.Length); 201Assert.Equal(5, intColumn.Length); 203for (int i = 0; i < intColumn.Length; i++) 220Assert.Equal(10, intColumn.Length); 226for (int i = 5; i < intColumn.Length; i++) 261Assert.Equal(intColumn.Length, copy.Length); 265for (int i = 0; i < intColumn.Length; i++) 283Assert.Equal(column.Length, clonedColumn.Length); 285for (long i = 0; i < column.Length; i++) 303Assert.Equal(column.Length, clonedColumn.Length); 305for (long i = 0; i < column.Length; i++) 325Assert.Equal(indicesMap.Length, clonedColumn.Length); 327for (int i = 0; i < indicesMap.Length; i++) 346Assert.Equal(indicesMap.Length, clonedColumn.Length); 348for (int i = 0; i < indicesMap.Length; i++) 349Assert.Equal(column[indicesMap[indicesMap.Length - 1 - i].Value], clonedColumn[i]); 367Assert.Equal(indicesMap.Length, clonedColumn.Length); 369for (int i = 0; i < indicesMap.Length; i++) 388Assert.Equal(indicesMap.Length, clonedColumn.Length); 390for (int i = 0; i < indicesMap.Length; i++) 391Assert.Equal(column[indicesMap[indicesMap.Length - 1 - i].Value], clonedColumn[i]); 409Assert.Equal(indicesMap.Length, clonedColumn.Length); 430Assert.Equal(indicesMap.Length, clonedColumn.Length); 449Assert.Equal(indicesMap.Length, clonedColumn.Length); 452for (int i = 0; i < indicesMap.Length; i++) 486Assert.Equal(MaxCapacityInBytes + 5, intColumn.Length); 498Assert.Equal(3, filteredNullDf.Columns["col"].Length); 654Assert.Equal(4, res.Length);
StringDataFrameColumnTests.cs (7)
24Assert.Equal(stringColumn.Length, clonedColumn.Length); 27for (int i = 0; i < stringColumn.Length; i++) 40Assert.Equal(mapIndices.Length, clonedColumn.Length); 56Assert.Equal(mapIndices.Length, clonedColumn.Length); 72Assert.Equal(mapIndices.Length, clonedColumn.Length); 89Assert.Equal(mapIndices.Length, clonedColumn.Length);
VBufferColumnTests.cs (3)
25Assert.Equal(10, vBufferColumn.Length); 38Assert.Equal(1, vBufferColumn.Length); 57Assert.Equal(length, vBufferColumn.Length);
Microsoft.ML.Fairlearn (3)
Reductions\Moment.cs (1)
47TotalSamples = label.Length;
Reductions\UtilityParity.cs (2)
107StringDataFrameColumn posSign = new StringDataFrameColumn("sign", upperBoundDiff.Length); 120StringDataFrameColumn negSign = new StringDataFrameColumn("sign", lowerBoundDiff.Length);