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)
75
Assert.Null(clone
[
i]);
DataFrameTests.BinaryOperations.cs (3)
343
Assert.Equal(newCol
[
i], typedStringColumn[i] + "suffix");
348
Assert.Equal(addString
[
i], typedStringColumn[i] + "suffix");
354
Assert.Equal(addString
[
i], "prefix" + typedStringColumn[i]);
DataFrameTests.Computations.cs (12)
69
Assert.Null(doubleColumn
[
i]);
71
Assert.Equal(100.0, (double)doubleColumn
[
i]);
88
Assert.Null(floatColumn
[
i]);
90
Assert.Equal(-10.0f, (float)floatColumn
[
i]);
227
Assert.Null(dateTimeColumn
[
i]);
229
Assert.Equal(maxDate, (DateTime)dateTimeColumn
[
i]);
238
Assert.Null(doubleColumn
[
i]);
240
Assert.Equal(100.0, (double)doubleColumn
[
i]);
257
Assert.Null(floatColumn
[
i]);
259
Assert.Equal(-10.0f, (float)floatColumn
[
i]);
491
Assert.Equal(exprectedValue, col3
[
i]);
508
Assert.Equal(exprectedValue, col3
[
i]);
DataFrameTests.cs (18)
322
Assert.Equal(originalColumn
[
r], firstColumn
[
r]);
334
Assert.Equal(originalColumn
[
r].ToString(), headColumn
[
verify[r]].ToString());
343
Assert.Equal(originalColumn[7], headColumn
[
verify[5]]);
357
Assert.Equal(originalColumn
[
originalColumnVerify[r]].ToString(), tailColumn
[
tailColumnVerity[r]].ToString());
371
Assert.Equal(((long)(r == 0 ? 8 : 9)).ToString(), maxColumn
[
r].ToString());
394
Assert.Equal(r == 0 ? "0" : "1", minColumn
[
r].ToString());
397
Assert.Equal("0", productColumn
[
r].ToString());
400
Assert.Equal("20", sumColumn
[
r].ToString());
619
Assert.Equal("3", column
[
i].ToString());
626
Assert.Equal("7", column
[
i].ToString());
634
var ocD = column
[
i];
635
Assert.Equal(df.Columns[c][i], column
[
i]);
927
Assert.Equal(dfColumn
[
r], cloneColumn
[
r]);
1247
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)
50
Assert.Equal(stringColumn[mapIndices[i]], clonedColumn
[
i]);
66
Assert.Equal(stringColumn[mapIndices[mapIndices.Length - 1 - i]], clonedColumn
[
i]);
82
Assert.Equal(stringColumn[mapIndices[i]], clonedColumn
[
i]);
98
Assert.Equal(stringColumn[mapIndices[mapIndices.Length - 1 - i]], clonedColumn
[
i]);