28 writes to
Microsoft.Data.Analysis (19)
DataFrame.cs (1)
498
column
[
length] = value;
GroupBy.cs (18)
151
firstColumn
[
rowIndex] = key;
176
retColumn
[
rowIndex] = count;
195
firstColumn
[
rowIndex] = key;
217
retColumn
[
rowIndex] = column[row];
263
retColumn
[
retColumnLength] = column[row];
268
firstColumn
[
retColumnLength] = key;
321
firstColumn
[
retColumnLength] = key;
324
retColumn
[
retColumnLength] = column[row];
364
firstColumn
[
rowIndex] = key;
373
retColumn
[
rowIndex] = _dataFrame.Columns[columnIndex].Max(rowEnumerable);
392
firstColumn
[
rowIndex] = key;
401
retColumn
[
rowIndex] = _dataFrame.Columns[columnIndex].Min(rowEnumerable);
420
firstColumn
[
rowIndex] = key;
429
retColumn
[
rowIndex] = _dataFrame.Columns[columnIndex].Product(rowEnumerable);
448
firstColumn
[
rowIndex] = key;
457
retColumn
[
rowIndex] = _dataFrame.Columns[columnIndex].Sum(rowEnumerable);
476
firstColumn
[
rowIndex] = key;
486
retColumn
[
rowIndex] = (double)Convert.ChangeType(_dataFrame.Columns[columnIndex].Sum(rowEnumerable), typeof(double)) / rowEnumerable.Count;
Microsoft.Data.Analysis.Interactive.Tests (2)
DataFrameInteractiveTests.cs (2)
26
dataFrameColumn1
[
length / 2] = null;
27
dataFrameColumn2
[
length / 2] = null;
Microsoft.Data.Analysis.Tests (7)
DataFrameTests.Utils.cs (7)
23
dataFrameColumn1
[
length / 2] = null;
24
dataFrameColumn2
[
length / 2] = null;
109
boolColumn
[
length / 2] = null;
121
boolColumn
[
length / 2] = null;
133
stringColumn
[
length / 2] = null;
140
charColumn
[
length / 2] = null;
154
dateTimeColumn
[
length / 2] = null;
55 references to
Microsoft.Data.Analysis (15)
DataFrame.Join.cs (1)
150
if (column
[
index] == null)
DataFrameColumn.cs (3)
148
public virtual bool IsValid(long index) => NullCount == 0 || this
[
index] != null;
285
var value = this
[
i];
443
sb.Append(this
[
i] ?? "null");
DataFrameRow.cs (2)
36
yield return column
[
_rowIndex];
42
return _dataFrame.Columns.Select(col => new KeyValuePair<string, object>(col.Name, col
[
_rowIndex]));
GroupBy.cs (4)
161
if (column
[
row] != null)
217
retColumn[rowIndex] = column
[
row];
263
retColumn[retColumnLength] = column
[
row];
324
retColumn[retColumnLength] = column
[
row];
StringDataFrameColumn.BinaryOperations.cs (5)
25
ret[i] += column
[
i].ToString();
85
ret[i] = (string)left
[
i] == right
[
i]?.ToString();
129
ret[i] = (string)left
[
i] != column
[
i].ToString();
Microsoft.Data.Analysis.Tests (40)
ArrowStringColumnTests.cs (1)
70
Assert.Null(clone
[
i]);
DataFrameTests.BinaryOperations.cs (3)
337
Assert.Equal(newCol
[
i], typedStringColumn[i] + "suffix");
342
Assert.Equal(addString
[
i], typedStringColumn[i] + "suffix");
348
Assert.Equal(addString
[
i], "prefix" + typedStringColumn[i]);
DataFrameTests.Computations.cs (12)
67
Assert.Null(doubleColumn
[
i]);
69
Assert.Equal(100.0, (double)doubleColumn
[
i]);
86
Assert.Null(floatColumn
[
i]);
88
Assert.Equal(-10.0f, (float)floatColumn
[
i]);
225
Assert.Null(dateTimeColumn
[
i]);
227
Assert.Equal(maxDate, (DateTime)dateTimeColumn
[
i]);
236
Assert.Null(doubleColumn
[
i]);
238
Assert.Equal(100.0, (double)doubleColumn
[
i]);
255
Assert.Null(floatColumn
[
i]);
257
Assert.Equal(-10.0f, (float)floatColumn
[
i]);
489
Assert.Equal(exprectedValue, col3
[
i]);
506
Assert.Equal(exprectedValue, col3
[
i]);
DataFrameTests.cs (18)
320
Assert.Equal(originalColumn
[
r], firstColumn
[
r]);
332
Assert.Equal(originalColumn
[
r].ToString(), headColumn
[
verify[r]].ToString());
341
Assert.Equal(originalColumn[7], headColumn
[
verify[5]]);
355
Assert.Equal(originalColumn
[
originalColumnVerify[r]].ToString(), tailColumn
[
tailColumnVerity[r]].ToString());
369
Assert.Equal(((long)(r == 0 ? 8 : 9)).ToString(), maxColumn
[
r].ToString());
392
Assert.Equal(r == 0 ? "0" : "1", minColumn
[
r].ToString());
395
Assert.Equal("0", productColumn
[
r].ToString());
398
Assert.Equal("20", sumColumn
[
r].ToString());
617
Assert.Equal("3", column
[
i].ToString());
624
Assert.Equal("7", column
[
i].ToString());
632
var ocD = column
[
i];
633
Assert.Equal(df.Columns[c][i], column
[
i]);
925
Assert.Equal(dfColumn
[
r], cloneColumn
[
r]);
1245
Assert.Equal(i.ToString(), column
[
i].ToString());
DataFrameTests.Filter.cs (1)
42
Assert.Equal(verify[j].ToString(), column
[
j].ToString());
DataFrameTests.Join.cs (1)
157
Assert.Equal(true, isEqual
[
j]);
StringDataFrameColumnTests.cs (4)
44
Assert.Equal(stringColumn[mapIndices[i]], clonedColumn
[
i]);
60
Assert.Equal(stringColumn[mapIndices[mapIndices.Length - 1 - i]], clonedColumn
[
i]);
76
Assert.Equal(stringColumn[mapIndices[i]], clonedColumn
[
i]);
92
Assert.Equal(stringColumn[mapIndices[mapIndices.Length - 1 - i]], clonedColumn
[
i]);