28 writes to
Microsoft.Data.Analysis (19)
DataFrame.cs (1)
498column[length] = value;
GroupBy.cs (18)
151firstColumn[rowIndex] = key; 176retColumn[rowIndex] = count; 195firstColumn[rowIndex] = key; 217retColumn[rowIndex] = column[row]; 263retColumn[retColumnLength] = column[row]; 268firstColumn[retColumnLength] = key; 321firstColumn[retColumnLength] = key; 324retColumn[retColumnLength] = column[row]; 364firstColumn[rowIndex] = key; 373retColumn[rowIndex] = _dataFrame.Columns[columnIndex].Max(rowEnumerable); 392firstColumn[rowIndex] = key; 401retColumn[rowIndex] = _dataFrame.Columns[columnIndex].Min(rowEnumerable); 420firstColumn[rowIndex] = key; 429retColumn[rowIndex] = _dataFrame.Columns[columnIndex].Product(rowEnumerable); 448firstColumn[rowIndex] = key; 457retColumn[rowIndex] = _dataFrame.Columns[columnIndex].Sum(rowEnumerable); 476firstColumn[rowIndex] = key; 486retColumn[rowIndex] = (double)Convert.ChangeType(_dataFrame.Columns[columnIndex].Sum(rowEnumerable), typeof(double)) / rowEnumerable.Count;
Microsoft.Data.Analysis.Interactive.Tests (2)
DataFrameInteractiveTests.cs (2)
26dataFrameColumn1[length / 2] = null; 27dataFrameColumn2[length / 2] = null;
Microsoft.Data.Analysis.Tests (7)
DataFrameTests.Utils.cs (7)
23dataFrameColumn1[length / 2] = null; 24dataFrameColumn2[length / 2] = null; 109boolColumn[length / 2] = null; 121boolColumn[length / 2] = null; 133stringColumn[length / 2] = null; 140charColumn[length / 2] = null; 154dateTimeColumn[length / 2] = null;
55 references to
Microsoft.Data.Analysis (15)
DataFrame.Join.cs (1)
150if (column[index] == null)
DataFrameColumn.cs (3)
148public virtual bool IsValid(long index) => NullCount == 0 || this[index] != null; 285var value = this[i]; 443sb.Append(this[i] ?? "null");
DataFrameRow.cs (2)
36yield return column[_rowIndex]; 42return _dataFrame.Columns.Select(col => new KeyValuePair<string, object>(col.Name, col[_rowIndex]));
GroupBy.cs (4)
161if (column[row] != null) 217retColumn[rowIndex] = column[row]; 263retColumn[retColumnLength] = column[row]; 324retColumn[retColumnLength] = column[row];
StringDataFrameColumn.BinaryOperations.cs (5)
25ret[i] += column[i].ToString(); 85ret[i] = (string)left[i] == right[i]?.ToString(); 129ret[i] = (string)left[i] != column[i].ToString();
Microsoft.Data.Analysis.Tests (40)
ArrowStringColumnTests.cs (1)
75Assert.Null(clone[i]);
DataFrameTests.BinaryOperations.cs (3)
343Assert.Equal(newCol[i], typedStringColumn[i] + "suffix"); 348Assert.Equal(addString[i], typedStringColumn[i] + "suffix"); 354Assert.Equal(addString[i], "prefix" + typedStringColumn[i]);
DataFrameTests.Computations.cs (12)
69Assert.Null(doubleColumn[i]); 71Assert.Equal(100.0, (double)doubleColumn[i]); 88Assert.Null(floatColumn[i]); 90Assert.Equal(-10.0f, (float)floatColumn[i]); 227Assert.Null(dateTimeColumn[i]); 229Assert.Equal(maxDate, (DateTime)dateTimeColumn[i]); 238Assert.Null(doubleColumn[i]); 240Assert.Equal(100.0, (double)doubleColumn[i]); 257Assert.Null(floatColumn[i]); 259Assert.Equal(-10.0f, (float)floatColumn[i]); 491Assert.Equal(exprectedValue, col3[i]); 508Assert.Equal(exprectedValue, col3[i]);
DataFrameTests.cs (18)
322Assert.Equal(originalColumn[r], firstColumn[r]); 334Assert.Equal(originalColumn[r].ToString(), headColumn[verify[r]].ToString()); 343Assert.Equal(originalColumn[7], headColumn[verify[5]]); 357Assert.Equal(originalColumn[originalColumnVerify[r]].ToString(), tailColumn[tailColumnVerity[r]].ToString()); 371Assert.Equal(((long)(r == 0 ? 8 : 9)).ToString(), maxColumn[r].ToString()); 394Assert.Equal(r == 0 ? "0" : "1", minColumn[r].ToString()); 397Assert.Equal("0", productColumn[r].ToString()); 400Assert.Equal("20", sumColumn[r].ToString()); 619Assert.Equal("3", column[i].ToString()); 626Assert.Equal("7", column[i].ToString()); 634var ocD = column[i]; 635Assert.Equal(df.Columns[c][i], column[i]); 927Assert.Equal(dfColumn[r], cloneColumn[r]); 1247Assert.Equal(i.ToString(), column[i].ToString());
DataFrameTests.Filter.cs (1)
42Assert.Equal(verify[j].ToString(), column[j].ToString());
DataFrameTests.Join.cs (1)
157Assert.Equal(true, isEqual[j]);
StringDataFrameColumnTests.cs (4)
50Assert.Equal(stringColumn[mapIndices[i]], clonedColumn[i]); 66Assert.Equal(stringColumn[mapIndices[mapIndices.Length - 1 - i]], clonedColumn[i]); 82Assert.Equal(stringColumn[mapIndices[i]], clonedColumn[i]); 98Assert.Equal(stringColumn[mapIndices[mapIndices.Length - 1 - i]], clonedColumn[i]);