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