271 references to Name
Microsoft.Data.Analysis (144)
DataFrame.cs (8)
154
/// An indexer based on <see cref="DataFrameColumn.
Name
"/>
310
column.SetName(prefix + column.
Name
);
325
column.SetName(column.
Name
+ suffix);
403
throw new ArgumentException(String.Format("{0} {1}", Strings.MismatchedRowCount, Columns[i].
Name
));
566
throw new ArgumentException(string.Format(Strings.MismatchedValueType, column.DataType), column.
Name
);
641
throw new ArgumentException(string.Format(Strings.MismatchedValueType, column.DataType), column.
Name
);
711
longestColumnName = Math.Max(longestColumnName, Columns[i].
Name
.Length);
718
sb.Append(string.Format(Columns[i].
Name
.PadRight(padding)));
DataFrame.IO.cs (1)
150
table.Columns.Add(column.
Name
, column.DataType);
DataFrame.Join.cs (4)
28
int index = dataFrame._columnCollection.IndexOf(column.
Name
);
33
existingColumn.SetName(existingColumn.
Name
+ leftSuffix);
34
column.SetName(column.
Name
+ rightSuffix);
35
index = dataFrame._columnCollection.IndexOf(column.
Name
);
DataFrameColumn.cs (3)
417
StringDataFrameColumn dataColumn = new StringDataFrameColumn(
Name
, 2);
439
var sb = new StringBuilder(
Name
);
453
sb.Append($"Name: {
Name
}, Type: {DataType}");
DataFrameColumnCollection.cs (13)
36
ret.Add(this[i].
Name
);
56
string currentName = column.
Name
;
85
if (_columnNameToIndexDictionary.ContainsKey(column.
Name
))
87
throw new ArgumentException(string.Format(Strings.DuplicateColumnName, column.
Name
), nameof(column));
94
_columnNameToIndexDictionary[column.
Name
] = columnIndex;
97
_columnNameToIndexDictionary[this[i].
Name
]++;
110
bool existingColumn = _columnNameToIndexDictionary.TryGetValue(column.
Name
, out int existingColumnIndex);
113
throw new ArgumentException(string.Format(Strings.DuplicateColumnName, column.
Name
), nameof(column));
116
_columnNameToIndexDictionary.Remove(this[columnIndex].
Name
);
117
_columnNameToIndexDictionary[column.
Name
] = columnIndex;
127
_columnNameToIndexDictionary.Remove(this[columnIndex].
Name
);
130
_columnNameToIndexDictionary[this[i].
Name
]--;
176
/// An indexer based on <see cref="DataFrameColumn.
Name
"/>
DataFrameColumns\ArrowStringDataFrameColumn.cs (11)
326
protected internal override Field GetArrowField() => new Field(
Name
, StringType.Default, NullCount != 0);
381
var ret = new ArrowStringDataFrameColumn(
Name
);
424
ArrowStringDataFrameColumn ret = new ArrowStringDataFrameColumn(
Name
);
436
ArrowStringDataFrameColumn ret = new ArrowStringDataFrameColumn(
Name
);
456
ArrowStringDataFrameColumn ret = new ArrowStringDataFrameColumn(
Name
);
538
ArrowStringDataFrameColumn ret = new ArrowStringDataFrameColumn(
Name
);
566
var ret = new ArrowStringDataFrameColumn(
Name
);
584
builder.AddColumn(
Name
, TextDataViewType.Instance);
602
PrimitiveDataFrameColumn<bool> ret = new PrimitiveDataFrameColumn<bool>(
Name
, Length);
643
PrimitiveDataFrameColumn<bool> ret = new PrimitiveDataFrameColumn<bool>(
Name
, Length);
686
ArrowStringDataFrameColumn ret = new ArrowStringDataFrameColumn(
Name
);
DataFrameColumns\StringDataFrameColumn.cs (6)
290
StringDataFrameColumn ret = new StringDataFrameColumn(
Name
, Length);
330
StringDataFrameColumn ret = new StringDataFrameColumn(
Name
, 0);
343
var ret = new StringDataFrameColumn(
Name
, mapIndices.Length);
365
var ret = new StringDataFrameColumn(
Name
, mapIndices.Length);
478
var ret = new StringDataFrameColumn(
Name
, Length - NullCount);
496
builder.AddColumn(
Name
, TextDataViewType.Instance);
DataFrameColumns\VBufferDataFrameColumn.cs (5)
168
builder.AddColumn(
Name
, GetDataViewType());
216
VBufferDataFrameColumn<T> ret = new VBufferDataFrameColumn<T>(
Name
, 0);
229
var ret = new VBufferDataFrameColumn<T>(
Name
, mapIndices.Length);
251
var ret = new VBufferDataFrameColumn<T>(
Name
, mapIndices.Length);
305
var ret = new VBufferDataFrameColumn<T>(
Name
, Length);
DataFrameRow.cs (1)
42
return _dataFrame.Columns.Select(col => new KeyValuePair<string, object>(col.
Name
, col[_rowIndex]));
GroupBy.cs (7)
167
retColumn = new PrimitiveDataFrameColumn<long>(column.
Name
);
173
retColumn = ret.Columns[column.
Name
];
214
retColumn = ret.Columns[column.
Name
];
259
retColumn = ret.Columns[column.
Name
];
315
retColumn = ret.Columns[column.
Name
];
343
retColumn = getColumn == null ? column.Clone(empty) : getColumn(column.
Name
);
349
retColumn = ret.Columns[column.
Name
];
PrimitiveDataFrameColumn.BinaryOperationAPIs.ExplodedColumns.cs (16)
15811
return new Int32DataFrameColumn(result.
Name
, result.ColumnContainer);
15820
return new Int32DataFrameColumn(result.
Name
, result.ColumnContainer);
15829
return new Int64DataFrameColumn(result.
Name
, result.ColumnContainer);
15839
return new Int32DataFrameColumn(result.
Name
, result.ColumnContainer);
15849
return new Int32DataFrameColumn(result.
Name
, result.ColumnContainer);
15858
return new UInt32DataFrameColumn(result.
Name
, result.ColumnContainer);
15867
return new UInt64DataFrameColumn(result.
Name
, result.ColumnContainer);
15877
return new Int32DataFrameColumn(result.
Name
, result.ColumnContainer);
15887
return new Int32DataFrameColumn(result.
Name
, result.ColumnContainer);
15896
return new Int32DataFrameColumn(result.
Name
, result.ColumnContainer);
15905
return new Int64DataFrameColumn(result.
Name
, result.ColumnContainer);
15915
return new Int32DataFrameColumn(result.
Name
, result.ColumnContainer);
15925
return new Int32DataFrameColumn(result.
Name
, result.ColumnContainer);
15934
return new UInt32DataFrameColumn(result.
Name
, result.ColumnContainer);
15943
return new UInt64DataFrameColumn(result.
Name
, result.ColumnContainer);
15953
return new Int32DataFrameColumn(result.
Name
, result.ColumnContainer);
PrimitiveDataFrameColumn.BinaryOperationImplementations.Exploded.cs (26)
229
return new BooleanDataFrameColumn(
Name
, ColumnContainer.HandleOperation(operation, column.ColumnContainer));
234
return new BooleanDataFrameColumn(
Name
, ColumnContainer.HandleOperation(operation, value));
242
return new BooleanDataFrameColumn(
Name
, ColumnContainer.HandleOperation(operation, column.ColumnContainer));
247
return new BooleanDataFrameColumn(
Name
, ColumnContainer.HandleOperation(operation, value));
255
return new BooleanDataFrameColumn(
Name
, ColumnContainer.HandleOperation(operation, column.ColumnContainer));
260
return new BooleanDataFrameColumn(
Name
, ColumnContainer.HandleOperation(operation, value));
268
return new BooleanDataFrameColumn(
Name
, ColumnContainer.HandleOperation(operation, column.ColumnContainer));
273
return new BooleanDataFrameColumn(
Name
, ColumnContainer.HandleOperation(operation, value));
281
return new BooleanDataFrameColumn(
Name
, ColumnContainer.HandleOperation(operation, column.ColumnContainer));
286
return new BooleanDataFrameColumn(
Name
, ColumnContainer.HandleOperation(operation, value));
294
return new BooleanDataFrameColumn(
Name
, ColumnContainer.HandleOperation(operation, column.ColumnContainer));
299
return new BooleanDataFrameColumn(
Name
, ColumnContainer.HandleOperation(operation, value));
307
return new BooleanDataFrameColumn(
Name
, ColumnContainer.HandleOperation(operation, column.ColumnContainer));
312
return new BooleanDataFrameColumn(
Name
, ColumnContainer.HandleOperation(operation, value));
320
return new BooleanDataFrameColumn(
Name
, ColumnContainer.HandleOperation(operation, column.ColumnContainer));
325
return new BooleanDataFrameColumn(
Name
, ColumnContainer.HandleOperation(operation, value));
333
return new BooleanDataFrameColumn(
Name
, ColumnContainer.HandleOperation(operation, column.ColumnContainer));
338
return new BooleanDataFrameColumn(
Name
, ColumnContainer.HandleOperation(operation, value));
346
return new BooleanDataFrameColumn(
Name
, ColumnContainer.HandleOperation(operation, column.ColumnContainer));
351
return new BooleanDataFrameColumn(
Name
, ColumnContainer.HandleOperation(operation, value));
359
return new BooleanDataFrameColumn(
Name
, ColumnContainer.HandleOperation(operation, column.ColumnContainer));
364
return new BooleanDataFrameColumn(
Name
, ColumnContainer.HandleOperation(operation, value));
372
return new BooleanDataFrameColumn(
Name
, ColumnContainer.HandleOperation(operation, column.ColumnContainer));
377
return new BooleanDataFrameColumn(
Name
, ColumnContainer.HandleOperation(operation, value));
385
return new BooleanDataFrameColumn(
Name
, ColumnContainer.HandleOperation(operation, column.ColumnContainer));
390
return new BooleanDataFrameColumn(
Name
, ColumnContainer.HandleOperation(operation, value));
PrimitiveDataFrameColumn.cs (37)
114
protected internal override Field GetArrowField() => new Field(
Name
, GetArrowType(), NullCount != 0);
362
var ret = CreateNewColumn(
Name
, Length - NullCount);
452
var clone = CreateNewColumn(
Name
, newColumnContainer);
464
PrimitiveDataFrameColumn<T> ret = CreateNewColumn(
Name
);
493
PrimitiveDataFrameColumn<T> ret = CreateNewColumn(
Name
, retContainer);
516
PrimitiveDataFrameColumn<T> ret = CreateNewColumn(
Name
);
536
return new BooleanDataFrameColumn(
Name
, newColumnContainer);
542
return new ByteDataFrameColumn(
Name
, newColumnContainer);
548
return new SByteDataFrameColumn(
Name
, newColumnContainer);
554
return new DoubleDataFrameColumn(
Name
, newColumnContainer);
560
return new DecimalDataFrameColumn(
Name
, newColumnContainer);
566
return new Int16DataFrameColumn(
Name
, newColumnContainer);
573
return new UInt16DataFrameColumn(
Name
, newColumnContainer);
579
return new Int32DataFrameColumn(
Name
, newColumnContainer);
585
return new UInt32DataFrameColumn(
Name
, newColumnContainer);
591
return new Int64DataFrameColumn(
Name
, newColumnContainer);
597
return new UInt64DataFrameColumn(
Name
, newColumnContainer);
603
return new SingleDataFrameColumn(
Name
, newColumnContainer);
730
PrimitiveDataFrameColumn<T> ret = new PrimitiveDataFrameColumn<T>(
Name
);
782
PrimitiveDataFrameColumn<float> column = new PrimitiveDataFrameColumn<float>(
Name
);
792
builder.AddColumn(
Name
, GetDataViewType());
930
var ret = new BooleanDataFrameColumn(
Name
, Length);
942
var ret = new BooleanDataFrameColumn(
Name
, Length);
1293
return new BooleanDataFrameColumn(
Name
, (this as PrimitiveDataFrameColumn<U>)._columnContainer.HandleOperation(operation, column._columnContainer));
1303
return new BooleanDataFrameColumn(
Name
, primitiveColumn._columnContainer.HandleOperation(operation, column._columnContainer));
1308
return new BooleanDataFrameColumn(
Name
, decimalColumn._columnContainer.HandleOperation(operation, column.CloneAsDecimalColumn()._columnContainer));
1315
return new BooleanDataFrameColumn(
Name
, (this as PrimitiveDataFrameColumn<U>)._columnContainer.HandleOperation(operation, column._columnContainer));
1335
return new BooleanDataFrameColumn(
Name
, primitiveColumn._columnContainer.HandleOperation(operation, column._columnContainer));
1342
return new BooleanDataFrameColumn(
Name
, decimalColumn._columnContainer.HandleOperation(operation, (column as PrimitiveDataFrameColumn<decimal>)._columnContainer));
1347
return new BooleanDataFrameColumn(
Name
, doubleColumn._columnContainer.HandleOperation(operation, column.CloneAsDoubleColumn()._columnContainer));
1364
return new BooleanDataFrameColumn(
Name
, (this as PrimitiveDataFrameColumn<bool>)._columnContainer.HandleOperation(operation, Unsafe.As<U, bool>(ref value)));
1374
return new BooleanDataFrameColumn(
Name
, primitiveColumn._columnContainer.HandleOperation(operation, Unsafe.As<U, T>(ref value)));
1379
return new BooleanDataFrameColumn(
Name
, decimalColumn._columnContainer.HandleOperation(operation, DecimalConverter<U>.Instance.GetDecimal(value)));
1386
return new BooleanDataFrameColumn(
Name
, (this as PrimitiveDataFrameColumn<DateTime>)._columnContainer.HandleOperation(operation, Unsafe.As<U, DateTime>(ref value)));
1406
return new BooleanDataFrameColumn(
Name
, primitiveColumn._columnContainer.HandleOperation(operation, Unsafe.As<U, T>(ref value)));
1413
return new BooleanDataFrameColumn(
Name
, decimalColumn._columnContainer.HandleOperation(operation, DecimalConverter<U>.Instance.GetDecimal(value)));
1418
return new BooleanDataFrameColumn(
Name
, doubleColumn._columnContainer.HandleOperation(operation, DoubleConverter<U>.Instance.GetDouble(value)));
StringDataFrameColumn.BinaryOperations.cs (6)
82
PrimitiveDataFrameColumn<bool> ret = new PrimitiveDataFrameColumn<bool>(left.
Name
, left.Length);
102
PrimitiveDataFrameColumn<bool> ret = new PrimitiveDataFrameColumn<bool>(
Name
, Length);
126
PrimitiveDataFrameColumn<bool> ret = new PrimitiveDataFrameColumn<bool>(left.
Name
, left.Length);
136
PrimitiveDataFrameColumn<bool> ret = new PrimitiveDataFrameColumn<bool>(
Name
, Length);
146
PrimitiveDataFrameColumn<bool> ret = new PrimitiveDataFrameColumn<bool>(
Name
, Length);
156
PrimitiveDataFrameColumn<bool> ret = new PrimitiveDataFrameColumn<bool>(
Name
, Length);
Microsoft.Data.Analysis.Interactive (1)
DataFrameKernelExtension.cs (1)
48
header.AddRange(df.Columns.Select(c => (IHtmlContent)th(c.
Name
)));
Microsoft.Data.Analysis.Interactive.Tests (1)
DataFrameInteractiveTests.cs (1)
92
Assert.Equal(dataFrame.Columns.Select(c => c.
Name
).ToArray(), new[] { "TrueOrFalse", "Integer", "Double", "Text" });
Microsoft.Data.Analysis.Tests (125)
DataFrame.IOTests.cs (44)
244
Assert.Equal("payment_type", df.Columns[5].
Name
);
245
Assert.Equal("payment_type.1", df.Columns[6].
Name
);
246
Assert.Equal("payment_type.2", df.Columns[7].
Name
);
351
Assert.Equal("vendor_id", df.Columns[0].
Name
);
352
Assert.Equal("rate_code", df.Columns[1].
Name
);
353
Assert.Equal("passenger_count", df.Columns[2].
Name
);
354
Assert.Equal("trip_time_in_secs", df.Columns[3].
Name
);
355
Assert.Equal("trip_distance", df.Columns[4].
Name
);
356
Assert.Equal("payment_type", df.Columns[5].
Name
);
357
Assert.Equal("fare_amount", df.Columns[6].
Name
);
459
Assert.Equal("vendor_id", df.Columns[0].
Name
);
460
Assert.Equal("rate_code", df.Columns[1].
Name
);
461
Assert.Equal("passenger_count", df.Columns[2].
Name
);
462
Assert.Equal("trip_time_in_secs", df.Columns[3].
Name
);
463
Assert.Equal("trip_distance", df.Columns[4].
Name
);
464
Assert.Equal("payment_type", df.Columns[5].
Name
);
465
Assert.Equal("fare_amount", df.Columns[6].
Name
);
522
Assert.Equal("vendor_id", df.Columns[0].
Name
);
523
Assert.Equal("rate_code", df.Columns[1].
Name
);
524
Assert.Equal("passenger_count", df.Columns[2].
Name
);
525
Assert.Equal("trip_time_in_secs", df.Columns[3].
Name
);
526
Assert.Equal("trip_distance", df.Columns[4].
Name
);
527
Assert.Equal("payment_type", df.Columns[5].
Name
);
528
Assert.Equal("fare_amount", df.Columns[6].
Name
);
529
Assert.Equal("date", df.Columns[7].
Name
);
689
var columnName = df.Columns.Select(c => c.
Name
);
704
var columnName = df.Columns.Select(c => c.
Name
);
729
Assert.Equal("IndexColumn", dataFrame.Columns[0].
Name
);
799
Assert.Equal("vendor_id", df.Columns[0].
Name
);
800
Assert.Equal("rate_code", df.Columns[1].
Name
);
801
Assert.Equal("passenger_count", df.Columns[2].
Name
);
802
Assert.Equal("trip_time_in_secs", df.Columns[3].
Name
);
842
Assert.Equal("vendor_id", df.Columns[0].
Name
);
843
Assert.Equal("rate_code", df.Columns[1].
Name
);
844
Assert.Equal("passenger_count", df.Columns[2].
Name
);
845
Assert.Equal("trip_time_in_secs", df.Columns[3].
Name
);
904
Assert.Equal("vendor_id", df.Columns[0].
Name
);
905
Assert.Equal("rate_code", df.Columns[1].
Name
);
906
Assert.Equal("passenger_count", df.Columns[2].
Name
);
907
Assert.Equal("trip_time_in_secs", df.Columns[3].
Name
);
1147
Assert.Equal("vendor_id", df.Columns[0].
Name
);
1148
Assert.Equal("empty", df.Columns[1].
Name
);
1222
var resColumns = dataFrame.Columns.Select(column => (column.
Name
, column.DataType)).ToArray();
1308
Assert.Equal(_columnNames[j], df.Columns[j].
Name
);
DataFrameIDataViewTests.cs (2)
306
Assert.Equal(df.Columns[i].
Name
, newDf.Columns[i].
Name
);
DataFrameTests.BinaryOperations.cs (18)
98
newColumn = df1.Columns[df1.Columns[i].
Name
] + df2.Columns[df2.Columns[i].
Name
];
102
newColumn = df1.Columns[df1.Columns[i].
Name
] - df2.Columns[df2.Columns[i].
Name
];
106
newColumn = df1.Columns[df1.Columns[i].
Name
] * df2.Columns[df2.Columns[i].
Name
];
120
verify = df1.Columns[df1.Columns[i].
Name
].ElementwiseEquals(df2.Columns[df2.Columns[i].
Name
]);
123
verify = df1.Columns[df1.Columns[i].
Name
].ElementwiseNotEquals(df2.Columns[df2.Columns[i].
Name
]);
126
verify = df1.Columns[df1.Columns[i].
Name
].ElementwiseGreaterThanOrEqual(df2.Columns[df2.Columns[i].
Name
]);
129
verify = df1.Columns[df1.Columns[i].
Name
].ElementwiseLessThanOrEqual(df2.Columns[df2.Columns[i].
Name
]);
132
verify = df1.Columns[df1.Columns[i].
Name
].ElementwiseGreaterThan(df2.Columns[df2.Columns[i].
Name
]);
135
verify = df1.Columns[df1.Columns[i].
Name
].ElementwiseLessThan(df2.Columns[df2.Columns[i].
Name
]);
DataFrameTests.cs (26)
25
Assert.Equal("Int1", dataFrame.Columns[0].
Name
);
54
Assert.Equal("a1", dc.
Name
);
70
Assert.Equal("IntColumn", dataFrame.Columns[0].
Name
);
72
Assert.Equal("FloatColumn", dataFrame.Columns[1].
Name
);
134
DataFrameColumn lastColumn_1 = dataFrame.Columns[originalLastColumn.
Name
];
142
int newIndexForOriginalLastColumn = dataFrame.Columns.IndexOf(originalLastColumn.
Name
);
192
Assert.Equal("Town", renamedColumn.
Name
);
211
Assert.Equal("Town", renamedColumn.
Name
);
319
DataFrameColumn firstColumn = first.Columns[originalColumn.
Name
];
331
DataFrameColumn headColumn = head.Columns[originalColumn.
Name
];
338
if (originalColumn.
Name
== "Bool")
340
DataFrameColumn headColumn = head.Columns[originalColumn.
Name
];
354
DataFrameColumn tailColumn = tail.Columns[originalColumn.
Name
];
366
if (originalColumn.
Name
== "Bool" || originalColumn.
Name
== "Char")
368
DataFrameColumn maxColumn = max.Columns[originalColumn.
Name
];
389
if (originalColumn.
Name
== "Bool" || originalColumn.
Name
== "Char")
391
DataFrameColumn minColumn = min.Columns[originalColumn.
Name
];
394
DataFrameColumn productColumn = product.Columns[originalColumn.
Name
];
397
DataFrameColumn sumColumn = sum.Columns[originalColumn.
Name
];
728
Assert.Equal("Description", descriptionColumn.
Name
);
736
Assert.Equal(df.Columns[i - 1].
Name
, column.
Name
);
746
Assert.Equal("DateTime", dateTimeColumn.
Name
);
769
Assert.Equal("Info", infoColumn.
Name
);
DataFrameTests.Filter.cs (4)
38
if (column.
Name
== "Char" || column.
Name
== "Bool" || column.
Name
== "String" || column.
Name
== "DateTime")
DataFrameTests.Sort.cs (1)
121
string columnName = sortedDataFrame.Columns[i].
Name
;
PrimitiveDataFrameColumnTests.cs (20)
260
Assert.Equal(intColumn.
Name
, copy.
Name
);
280
Assert.Equal(column.
Name
, clonedColumn.
Name
);
300
Assert.Equal(column.
Name
, clonedColumn.
Name
);
322
Assert.Equal(column.
Name
, clonedColumn.
Name
);
343
Assert.Equal(column.
Name
, clonedColumn.
Name
);
364
Assert.Equal(column.
Name
, clonedColumn.
Name
);
385
Assert.Equal(column.
Name
, clonedColumn.
Name
);
406
Assert.Equal(column.
Name
, clonedColumn.
Name
);
427
Assert.Equal(column.
Name
, clonedColumn.
Name
);
448
Assert.Equal(column.
Name
, clonedColumn.
Name
);
StringDataFrameColumnTests.cs (10)
23
Assert.Equal(stringColumn.
Name
, clonedColumn.
Name
);
39
Assert.Equal(stringColumn.
Name
, clonedColumn.
Name
);
55
Assert.Equal(stringColumn.
Name
, clonedColumn.
Name
);
71
Assert.Equal(stringColumn.
Name
, clonedColumn.
Name
);
88
Assert.Equal(stringColumn.
Name
, clonedColumn.
Name
);