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)
200Assert.Equal(10, df.Columns["EmptyNullBitMapColumn"].Length); 204Assert.Equal(10, df.Columns["EmptyDataColumn"].Length); 207Assert.Equal(10, df.Columns["EmptyDataColumn"].Length); 218Assert.Equal(0, emptyDataFrame.Columns["EmptyDataAndNullColumns"].Length);
ArrowStringColumnTests.cs (5)
32Assert.Equal(2, stringColumn.Length); 47Assert.Equal(4, stringColumn.Length); 71Assert.Equal(7, clone.Length); 90for (long i = 0; i < column.Length; i++) 108Assert.Equal(column.Length, ret.NullCount);
DataFrame.IOTests.cs (3)
736Assert.Equal(3, dataFrame.Columns[0].Length); 738for (long i = 0; i < dataFrame.Columns[0].Length; i++) 1169for (long i = 0; i < emptyColumn.Length; i++)
DataFrameColumn.BinaryOperationTests.cs (209)
33Assert.Equal(columnResult.Length, verify.Count()); 46Assert.Equal(columnResult.Length, verify.Count()); 59Assert.Equal(columnResult.Length, verify.Count()); 72Assert.Equal(columnResult.Length, verify.Count()); 85Assert.Equal(columnResult.Length, verify.Count()); 98Assert.Equal(columnResult.Length, verify.Count()); 111Assert.Equal(columnResult.Length, verify.Count()); 124Assert.Equal(columnResult.Length, verify.Count()); 137Assert.Equal(columnResult.Length, verify.Count()); 150Assert.Equal(columnResult.Length, verify.Count()); 163Assert.Equal(columnResult.Length, verify.Count()); 175Assert.Equal(columnResult.Length, verify.Count()); 187Assert.Equal(columnResult.Length, verify.Count()); 199Assert.Equal(columnResult.Length, verify.Count()); 211Assert.Equal(columnResult.Length, verify.Count()); 223Assert.Equal(columnResult.Length, verify.Count()); 235Assert.Equal(columnResult.Length, verify.Count()); 247Assert.Equal(columnResult.Length, verify.Count()); 259Assert.Equal(columnResult.Length, verify.Count()); 271Assert.Equal(columnResult.Length, verify.Count()); 283Assert.Equal(columnResult.Length, verify.Count()); 295Assert.Equal(columnResult.Length, verify.Count()); 307Assert.Equal(columnResult.Length, verify.Count()); 319Assert.Equal(columnResult.Length, verify.Count()); 331Assert.Equal(columnResult.Length, verify.Count()); 343Assert.Equal(columnResult.Length, verify.Count()); 355Assert.Equal(columnResult.Length, verify.Count()); 367Assert.Equal(columnResult.Length, verify.Count()); 379Assert.Equal(columnResult.Length, verify.Count()); 391Assert.Equal(columnResult.Length, verify.Count()); 403Assert.Equal(columnResult.Length, verify.Count()); 415Assert.Equal(columnResult.Length, verify.Count()); 427Assert.Equal(columnResult.Length, verify.Count()); 440Assert.Equal(columnResult.Length, verify.Count()); 453Assert.Equal(columnResult.Length, verify.Count()); 466Assert.Equal(columnResult.Length, verify.Count()); 479Assert.Equal(columnResult.Length, verify.Count()); 492Assert.Equal(columnResult.Length, verify.Count()); 505Assert.Equal(columnResult.Length, verify.Count()); 518Assert.Equal(columnResult.Length, verify.Count()); 531Assert.Equal(columnResult.Length, verify.Count()); 544Assert.Equal(columnResult.Length, verify.Count()); 557Assert.Equal(columnResult.Length, verify.Count()); 570Assert.Equal(columnResult.Length, verify.Count()); 582Assert.Equal(columnResult.Length, verify.Count()); 594Assert.Equal(columnResult.Length, verify.Count()); 606Assert.Equal(columnResult.Length, verify.Count()); 618Assert.Equal(columnResult.Length, verify.Count()); 630Assert.Equal(columnResult.Length, verify.Count()); 642Assert.Equal(columnResult.Length, verify.Count()); 654Assert.Equal(columnResult.Length, verify.Count()); 666Assert.Equal(columnResult.Length, verify.Count()); 678Assert.Equal(columnResult.Length, verify.Count()); 690Assert.Equal(columnResult.Length, verify.Count()); 702Assert.Equal(columnResult.Length, verify.Count()); 714Assert.Equal(columnResult.Length, verify.Count()); 726Assert.Equal(columnResult.Length, verify.Count()); 738Assert.Equal(columnResult.Length, verify.Count()); 750Assert.Equal(columnResult.Length, verify.Count()); 762Assert.Equal(columnResult.Length, verify.Count()); 774Assert.Equal(columnResult.Length, verify.Count()); 786Assert.Equal(columnResult.Length, verify.Count()); 798Assert.Equal(columnResult.Length, verify.Count()); 810Assert.Equal(columnResult.Length, verify.Count()); 822Assert.Equal(columnResult.Length, verify.Count()); 834Assert.Equal(columnResult.Length, verify.Count()); 847Assert.Equal(columnResult.Length, verify.Count()); 860Assert.Equal(columnResult.Length, verify.Count()); 873Assert.Equal(columnResult.Length, verify.Count()); 886Assert.Equal(columnResult.Length, verify.Count()); 899Assert.Equal(columnResult.Length, verify.Count()); 912Assert.Equal(columnResult.Length, verify.Count()); 925Assert.Equal(columnResult.Length, verify.Count()); 938Assert.Equal(columnResult.Length, verify.Count()); 951Assert.Equal(columnResult.Length, verify.Count()); 964Assert.Equal(columnResult.Length, verify.Count()); 977Assert.Equal(columnResult.Length, verify.Count()); 989Assert.Equal(columnResult.Length, verify.Count()); 1001Assert.Equal(columnResult.Length, verify.Count()); 1013Assert.Equal(columnResult.Length, verify.Count()); 1025Assert.Equal(columnResult.Length, verify.Count()); 1037Assert.Equal(columnResult.Length, verify.Count()); 1049Assert.Equal(columnResult.Length, verify.Count()); 1061Assert.Equal(columnResult.Length, verify.Count()); 1073Assert.Equal(columnResult.Length, verify.Count()); 1085Assert.Equal(columnResult.Length, verify.Count()); 1097Assert.Equal(columnResult.Length, verify.Count()); 1109Assert.Equal(columnResult.Length, verify.Count()); 1121Assert.Equal(columnResult.Length, verify.Count()); 1133Assert.Equal(columnResult.Length, verify.Count()); 1145Assert.Equal(columnResult.Length, verify.Count()); 1157Assert.Equal(columnResult.Length, verify.Count()); 1169Assert.Equal(columnResult.Length, verify.Count()); 1181Assert.Equal(columnResult.Length, verify.Count()); 1193Assert.Equal(columnResult.Length, verify.Count()); 1205Assert.Equal(columnResult.Length, verify.Count()); 1217Assert.Equal(columnResult.Length, verify.Count()); 1229Assert.Equal(columnResult.Length, verify.Count()); 1241Assert.Equal(columnResult.Length, verify.Count()); 1254Assert.Equal(columnResult.Length, verify.Count()); 1267Assert.Equal(columnResult.Length, verify.Count()); 1280Assert.Equal(columnResult.Length, verify.Count()); 1293Assert.Equal(columnResult.Length, verify.Count()); 1306Assert.Equal(columnResult.Length, verify.Count()); 1319Assert.Equal(columnResult.Length, verify.Count()); 1332Assert.Equal(columnResult.Length, verify.Count()); 1345Assert.Equal(columnResult.Length, verify.Count()); 1358Assert.Equal(columnResult.Length, verify.Count()); 1371Assert.Equal(columnResult.Length, verify.Count()); 1384Assert.Equal(columnResult.Length, verify.Count()); 1396Assert.Equal(columnResult.Length, verify.Count()); 1408Assert.Equal(columnResult.Length, verify.Count()); 1420Assert.Equal(columnResult.Length, verify.Count()); 1432Assert.Equal(columnResult.Length, verify.Count()); 1444Assert.Equal(columnResult.Length, verify.Count()); 1456Assert.Equal(columnResult.Length, verify.Count()); 1468Assert.Equal(columnResult.Length, verify.Count()); 1480Assert.Equal(columnResult.Length, verify.Count()); 1492Assert.Equal(columnResult.Length, verify.Count()); 1504Assert.Equal(columnResult.Length, verify.Count()); 1516Assert.Equal(columnResult.Length, verify.Count()); 1528Assert.Equal(columnResult.Length, verify.Count()); 1540Assert.Equal(columnResult.Length, verify.Count()); 1552Assert.Equal(columnResult.Length, verify.Count()); 1564Assert.Equal(columnResult.Length, verify.Count()); 1576Assert.Equal(columnResult.Length, verify.Count()); 1588Assert.Equal(columnResult.Length, verify.Count()); 1600Assert.Equal(columnResult.Length, verify.Count()); 1612Assert.Equal(columnResult.Length, verify.Count()); 1624Assert.Equal(columnResult.Length, verify.Count()); 1636Assert.Equal(columnResult.Length, verify.Count()); 1648Assert.Equal(columnResult.Length, verify.Count()); 1661Assert.Equal(columnResult.Length, verify.Count()); 1674Assert.Equal(columnResult.Length, verify.Count()); 1687Assert.Equal(columnResult.Length, verify.Count()); 1700Assert.Equal(columnResult.Length, verify.Count()); 1713Assert.Equal(columnResult.Length, verify.Count()); 1726Assert.Equal(columnResult.Length, verify.Count()); 1739Assert.Equal(columnResult.Length, verify.Count()); 1752Assert.Equal(columnResult.Length, verify.Count()); 1765Assert.Equal(columnResult.Length, verify.Count()); 1778Assert.Equal(columnResult.Length, verify.Count()); 1791Assert.Equal(columnResult.Length, verify.Count()); 1803Assert.Equal(columnResult.Length, verify.Count()); 1815Assert.Equal(columnResult.Length, verify.Count()); 1827Assert.Equal(columnResult.Length, verify.Count()); 1839Assert.Equal(columnResult.Length, verify.Count()); 1851Assert.Equal(columnResult.Length, verify.Count()); 1863Assert.Equal(columnResult.Length, verify.Count()); 1875Assert.Equal(columnResult.Length, verify.Count()); 1887Assert.Equal(columnResult.Length, verify.Count()); 1899Assert.Equal(columnResult.Length, verify.Count()); 1911Assert.Equal(columnResult.Length, verify.Count()); 1923Assert.Equal(columnResult.Length, verify.Count()); 1935Assert.Equal(columnResult.Length, verify.Count()); 1947Assert.Equal(columnResult.Length, verify.Count()); 1959Assert.Equal(columnResult.Length, verify.Count()); 1971Assert.Equal(columnResult.Length, verify.Count()); 1983Assert.Equal(columnResult.Length, verify.Count()); 1995Assert.Equal(columnResult.Length, verify.Count()); 2007Assert.Equal(columnResult.Length, verify.Count()); 2019Assert.Equal(columnResult.Length, verify.Count()); 2031Assert.Equal(columnResult.Length, verify.Count()); 2043Assert.Equal(columnResult.Length, verify.Count()); 2055Assert.Equal(columnResult.Length, verify.Count()); 2068Assert.Equal(columnResult.Length, verify.Count()); 2083Assert.Equal(columnResult.Length, verify.Count()); 2098Assert.Equal(columnResult.Length, verify.Count()); 2113Assert.Equal(columnResult.Length, verify.Count()); 2128Assert.Equal(columnResult.Length, verify.Count()); 2143Assert.Equal(columnResult.Length, verify.Count()); 2158Assert.Equal(columnResult.Length, verify.Count()); 2173Assert.Equal(columnResult.Length, verify.Count()); 2188Assert.Equal(columnResult.Length, verify.Count()); 2203Assert.Equal(columnResult.Length, verify.Count()); 2218Assert.Equal(columnResult.Length, verify.Count()); 2232Assert.Equal(columnResult.Length, verify.Count()); 2244Assert.Equal(columnResult.Length, verify.Count()); 2256Assert.Equal(columnResult.Length, verify.Count()); 2268Assert.Equal(columnResult.Length, verify.Count()); 2280Assert.Equal(columnResult.Length, verify.Count()); 2292Assert.Equal(columnResult.Length, verify.Count()); 2304Assert.Equal(columnResult.Length, verify.Count()); 2316Assert.Equal(columnResult.Length, verify.Count()); 2328Assert.Equal(columnResult.Length, verify.Count()); 2340Assert.Equal(columnResult.Length, verify.Count()); 2352Assert.Equal(columnResult.Length, verify.Count()); 2365Assert.Equal(columnResult.Length, verify.Count()); 2380Assert.Equal(columnResult.Length, verify.Count()); 2395Assert.Equal(columnResult.Length, verify.Count()); 2410Assert.Equal(columnResult.Length, verify.Count()); 2425Assert.Equal(columnResult.Length, verify.Count()); 2440Assert.Equal(columnResult.Length, verify.Count()); 2455Assert.Equal(columnResult.Length, verify.Count()); 2470Assert.Equal(columnResult.Length, verify.Count()); 2485Assert.Equal(columnResult.Length, verify.Count()); 2500Assert.Equal(columnResult.Length, verify.Count()); 2515Assert.Equal(columnResult.Length, verify.Count()); 2529Assert.Equal(columnResult.Length, verify.Count()); 2541Assert.Equal(columnResult.Length, verify.Count()); 2553Assert.Equal(columnResult.Length, verify.Count()); 2565Assert.Equal(columnResult.Length, verify.Count()); 2577Assert.Equal(columnResult.Length, verify.Count()); 2589Assert.Equal(columnResult.Length, verify.Count()); 2601Assert.Equal(columnResult.Length, verify.Count()); 2613Assert.Equal(columnResult.Length, verify.Count()); 2625Assert.Equal(columnResult.Length, verify.Count()); 2637Assert.Equal(columnResult.Length, verify.Count()); 2649Assert.Equal(columnResult.Length, verify.Count());
DataFrameIDataViewTests.cs (6)
311Assert.Equal(rowSize, newDf.Columns[i].Length); 333Assert.Equal(5, newDf.Columns[i].Length); 392Assert.Equal(6, column.Length); 409Assert.Equal(6, column.Length); 427Assert.Equal(maxRows, column.Length); 444Assert.Equal(3, column.Length);
DataFrameTests.BinaryOperations.cs (3)
341for (int i = 0; i < newCol.Length; i++) 346for (int i = 0; i < addString.Length; i++) 352for (int i = 0; i < addString.Length; i++)
DataFrameTests.Computations.cs (11)
66for (int i = 0; i < doubleColumn.Length; i++) 75for (int i = 0; i < df.Columns["Double"].Length; i++) 85for (int i = 0; i < floatColumn.Length; i++) 94for (int i = 0; i < df.Columns["Float"].Length; i++) 224for (int i = 0; i < dateTimeColumn.Length; i++) 235for (int i = 0; i < doubleColumn.Length; i++) 244for (int i = 0; i < df.Columns["Double"].Length; i++) 254for (int i = 0; i < floatColumn.Length; i++) 263for (int i = 0; i < df.Columns["Float"].Length; i++) 488for (int i = 0; i < col1.Length; i++) 505for (int i = 0; i < col1.Length; i++)
DataFrameTests.cs (38)
71Assert.Equal(rowCount, dataFrame.Columns[0].Length); 73Assert.Equal(rowCount, dataFrame.Columns[1].Length); 631for (int i = 0; i < column.Length; i++) 739Assert.Equal(4, column.Length); 749Assert.Equal(4, dateTimeColumn.Length); 779Assert.Equal(2, column.Length); 823Assert.Equal(2, strColumn.Length); 826Assert.Equal(2, strColumn.Length); 828Assert.Equal(2, filled.Length); 837Assert.Equal(2, strColumn.Length); 844Assert.Equal(3, arrowColumn.Length); 848Assert.Equal(3, arrowColumn.Length); 850Assert.Equal(3, arrowColumnFilled.Length); 884Assert.Equal(column.Length, column.NullCount); 891Assert.Equal(column.Length, column.NullCount); 1132Assert.Equal(15, df.Columns["Column1"].Length); 1133Assert.Equal(15, df.Columns["Column2"].Length); 1139Assert.Equal(16, ret.Columns["Column1"].Length); 1140Assert.Equal(16, ret.Columns["Column2"].Length); 1146Assert.Equal(16, df.Columns["Column1"].Length); 1147Assert.Equal(16, df.Columns["Column2"].Length); 1152Assert.Equal(17, ret.Columns["Column1"].Length); 1153Assert.Equal(17, ret.Columns["Column2"].Length); 1159Assert.Equal(17, df.Columns["Column1"].Length); 1160Assert.Equal(17, df.Columns["Column2"].Length); 1165Assert.Equal(18, ret.Columns["Column1"].Length); 1166Assert.Equal(18, ret.Columns["Column2"].Length); 1177Assert.Equal(18, df.Columns["Column1"].Length); 1178Assert.Equal(18, df.Columns["Column2"].Length); 1184Assert.Equal(18, df.Columns["Column1"].Length); 1185Assert.Equal(18, df.Columns["Column2"].Length); 1189Assert.Equal(19, ret.Columns["Column1"].Length); 1190Assert.Equal(19, ret.Columns["Column2"].Length); 1227Assert.Equal(values.Length, newCol.Length); 1229for (int i = 0; i < newCol.Length; i++) 1244Assert.Equal(length, column.Length); 1245for (long i = 0; i < column.Length; i++) 1371Assert.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)
100for (long i = 0; i < dataFrameColumn1.Length - 1; i++) 115Assert.Equal(1, intColumn.Length); 117for (int i = 0; i < intColumn.Length; i++) 129Assert.Equal(11, dataFrameColumn1.Length); 145Assert.Equal(16, intColumn.Length); 164Assert.Equal(5, intColumn.Length); 165for (int i = 0; i < intColumn.Length; i++) 183Assert.Equal(10, intColumn.Length); 207Assert.Equal(5, intColumn.Length); 209for (int i = 0; i < intColumn.Length; i++) 226Assert.Equal(10, intColumn.Length); 232for (int i = 5; i < intColumn.Length; i++) 267Assert.Equal(intColumn.Length, copy.Length); 271for (int i = 0; i < intColumn.Length; i++) 289Assert.Equal(column.Length, clonedColumn.Length); 291for (long i = 0; i < column.Length; i++) 309Assert.Equal(column.Length, clonedColumn.Length); 311for (long i = 0; i < column.Length; i++) 331Assert.Equal(indicesMap.Length, clonedColumn.Length); 333for (int i = 0; i < indicesMap.Length; i++) 352Assert.Equal(indicesMap.Length, clonedColumn.Length); 354for (int i = 0; i < indicesMap.Length; i++) 355Assert.Equal(column[indicesMap[indicesMap.Length - 1 - i].Value], clonedColumn[i]); 373Assert.Equal(indicesMap.Length, clonedColumn.Length); 375for (int i = 0; i < indicesMap.Length; i++) 394Assert.Equal(indicesMap.Length, clonedColumn.Length); 396for (int i = 0; i < indicesMap.Length; i++) 397Assert.Equal(column[indicesMap[indicesMap.Length - 1 - i].Value], clonedColumn[i]); 415Assert.Equal(indicesMap.Length, clonedColumn.Length); 436Assert.Equal(indicesMap.Length, clonedColumn.Length); 455Assert.Equal(indicesMap.Length, clonedColumn.Length); 458for (int i = 0; i < indicesMap.Length; i++) 492Assert.Equal(MaxCapacityInBytes + 5, intColumn.Length); 504Assert.Equal(3, filteredNullDf.Columns["col"].Length); 660Assert.Equal(4, res.Length);
StringDataFrameColumnTests.cs (7)
30Assert.Equal(stringColumn.Length, clonedColumn.Length); 33for (int i = 0; i < stringColumn.Length; i++) 46Assert.Equal(mapIndices.Length, clonedColumn.Length); 62Assert.Equal(mapIndices.Length, clonedColumn.Length); 78Assert.Equal(mapIndices.Length, clonedColumn.Length); 95Assert.Equal(mapIndices.Length, clonedColumn.Length);
VBufferColumnTests.cs (3)
31Assert.Equal(10, vBufferColumn.Length); 44Assert.Equal(1, vBufferColumn.Length); 63Assert.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);