29 writes to
Microsoft.Data.Analysis (27)
DataFrame.Arrow.cs (2)
110
dataTimeDataFrameColumn
[
i] = arrowDate64Array.GetDateTime(i);
121
dataTimeDataFrameColumn
[
i] = arrowTimeStampArray.GetTimestamp(i)?.DateTime;
DataFrame.cs (1)
183
filter
[
i - (Rows.Count - numberOfRows)] = i;
DataFrame.IO.cs (1)
477
indexColumn
[
i] = i;
DataFrame.Join.cs (3)
61
mapIndices
[
i] = i;
84
mapIndices
[
i] = i;
129
mapIndices
[
i] = i;
DataFrameColumn.cs (2)
502
columnSortIndices
[
ascending ? i++ : i--] = bufferSortIndex;
521
columnSortIndices
[
start + j] = columnNullIndices[j];
DataFrameColumns\ArrowStringDataFrameColumn.cs (4)
607
ret
[
i] = !IsValid(i);
615
ret
[
i] = strBytes.SequenceEqual(bytes);
648
ret
[
i] = IsValid(i);
656
ret
[
i] = !strBytes.SequenceEqual(bytes);
DataFrameColumns\StringDataFrameColumn.cs (1)
220
columnNullIndices
[
nullIndicesSlot] = i + bufferSortIndices.Count * MaxCapacity;
PrimitiveDataFrameColumn.cs (6)
373
ret
[
j++] = span[i];
706
ret
[
i] = min;
709
ret
[
i] = max;
906
this
[
row] = value;
934
ret
[
i] = !IsValid(i);
946
ret
[
i] = IsValid(i);
PrimitiveDataFrameColumn.Sort.cs (1)
50
columnNullIndices
[
nullIndicesSlot] = localSortIndex + b * _columnContainer.Buffers[0].Length;
StringDataFrameColumn.BinaryOperations.cs (6)
85
ret
[
i] = (string)left[i] == right[i]?.ToString();
105
ret
[
i] = this[i] == value;
129
ret
[
i] = (string)left[i] != column[i].ToString();
139
ret
[
i] = this[i] != null;
149
ret
[
i] = this[i] == null;
159
ret
[
i] = this[i] != value;
Microsoft.Data.Analysis.Tests (2)
DataFrameTests.Join.cs (1)
90
mapIndices
[
i] = i;
PrimitiveDataFrameColumnTests.cs (1)
28
column
[
index] = 33;
60 references to
Microsoft.Data.Analysis (20)
DataFrameColumn.cs (1)
521
columnSortIndices[start + j] = columnNullIndices
[
j];
DataFrameColumns\ArrowStringDataFrameColumn.cs (3)
427
bool? value = boolColumn
[
i];
440
int? index = mapIndices
[
invertMapIndices ? mapIndices.Length - 1 - i : i];
460
long? index = mapIndices
[
invertMapIndices ? mapIndices.Length - 1 - i : i];
DataFrameColumns\StringDataFrameColumn.cs (1)
333
bool? value = boolColumn
[
i];
DataFrameColumns\VBufferDataFrameColumn.cs (1)
219
bool? value = boolColumn
[
i];
PrimitiveDataFrameColumn.cs (14)
218
ret.Add(this
[
i]);
265
double middleValue = (double)Convert.ChangeType(this
[
sortIndices
[
middle].Value].Value, typeof(double));
268
double otherMiddleValue = (double)Convert.ChangeType(this
[
sortIndices
[
middle - 1].Value].Value, typeof(double));
468
bool? value = boolColumn
[
i];
470
ret.Append(this
[
i]);
701
T? value = ret
[
i];
734
T? value = this
[
i];
883
(ref T value) => value = this
[
cursor.Position].GetValueOrDefault();
886
(ref float value) => value = column
[
cursor.Position] ?? float.NaN;
889
(ref double value) => value = column
[
cursor.Position] ?? double.NaN;
892
(ref ushort value) => value = column
[
cursor.Position].GetValueOrDefault();
895
(ref double value) => value = (double?)column
[
cursor.Position] ?? double.NaN;
Microsoft.Data.Analysis.Tests (40)
DataFrameTests.Computations.cs (6)
490
var exprectedValue = col1
[
i] & col2
[
i];
492
Assert.Equal(exprectedValue, col4
[
i]);
507
var exprectedValue = col1
[
i] | col2
[
i];
509
Assert.Equal(exprectedValue, col4
[
i]);
DataFrameTests.cs (4)
940
Assert.False(bigInts
[
i]);
942
Assert.True(bigInts
[
i]);
1231
Assert.Equal(col
[
i], values[i]); // Make sure values didn't change
1232
Assert.Equal(newCol
[
i], values[i] + 0.5d);
PrimitiveDataFrameColumnTests.cs (30)
30
Assert.Equal((byte)33, column
[
index]);
31
Assert.Null(column
[
index % MaxCapacityInBytes]);
187
Assert.Equal(initialValues[i], intColumn
[
i]);
211
Assert.Equal(5, intColumn
[
i]);
234
Assert.Equal(5, intColumn
[
i]);
272
Assert.Equal(intColumn
[
i], copy
[
i]);
292
Assert.Equal(column
[
i], clonedColumn
[
i]);
312
Assert.Equal(column
[
i], clonedColumn
[
i]);
334
Assert.Equal(column
[
indicesMap
[
i].Value], clonedColumn
[
i]);
355
Assert.Equal(column
[
indicesMap
[
indicesMap.Length - 1 - i].Value], clonedColumn
[
i]);
376
Assert.Equal(column
[
indicesMap
[
i].Value], clonedColumn
[
i]);
397
Assert.Equal(column
[
indicesMap
[
indicesMap.Length - 1 - i].Value], clonedColumn
[
i]);
418
Assert.Equal(column
[
indicesMap[i]], clonedColumn
[
i]);
439
Assert.Equal(column
[
indicesMap[i]], clonedColumn
[
i]);
459
Assert.Equal(indicesMap.IsValid(i) ? column
[
indicesMap
[
i].Value] : null, clonedColumn
[
i]);