8 types derived from DataFrameColumn
Microsoft.Data.Analysis (8)
DataFrameColumns\ArrowStringDataFrameColumn.cs (1)
21
public partial class ArrowStringDataFrameColumn :
DataFrameColumn
, IEnumerable<string>
DataFrameColumns\StringDataFrameColumn.cs (1)
19
public partial class StringDataFrameColumn :
DataFrameColumn
, IEnumerable<string>
DataFrameColumns\VBufferDataFrameColumn.cs (1)
18
public partial class VBufferDataFrameColumn<T> :
DataFrameColumn
, IEnumerable<VBuffer<T>>
PrimitiveDataFrameColumn.BinaryOperations.cs (1)
14
public partial class PrimitiveDataFrameColumn<T> :
DataFrameColumn
PrimitiveDataFrameColumn.Computations.cs (1)
15
public partial class PrimitiveDataFrameColumn<T> :
DataFrameColumn
PrimitiveDataFrameColumn.cs (1)
23
public partial class PrimitiveDataFrameColumn<T> :
DataFrameColumn
, IEnumerable<T?>
PrimitiveDataFrameColumn.Sort.cs (1)
12
public partial class PrimitiveDataFrameColumn<T> :
DataFrameColumn
StringDataFrameColumn.BinaryOperations.cs (1)
13
public partial class StringDataFrameColumn :
DataFrameColumn
860 references to DataFrameColumn
Microsoft.Data.Analysis (654)
DataFrame.Arrow.cs (4)
17
DataFrameColumn
dataFrameColumn = null;
180
DataFrameColumn
column = Columns[i];
197
DataFrameColumn
column = Columns[i];
202
DataFrameColumn
column = Columns[i];
DataFrame.BinaryOperations.cs (76)
26
DataFrameColumn
baseColumn = _columnCollection[i];
27
DataFrameColumn
newColumn = baseColumn.Add(values[i], inPlace);
45
DataFrameColumn
baseColumn = _columnCollection[i];
46
DataFrameColumn
newColumn = baseColumn.Add(value, inPlace);
65
DataFrameColumn
baseColumn = _columnCollection[i];
66
DataFrameColumn
newColumn = baseColumn.Subtract(values[i], inPlace);
84
DataFrameColumn
baseColumn = _columnCollection[i];
85
DataFrameColumn
newColumn = baseColumn.Subtract(value, inPlace);
104
DataFrameColumn
baseColumn = _columnCollection[i];
105
DataFrameColumn
newColumn = baseColumn.Multiply(values[i], inPlace);
123
DataFrameColumn
baseColumn = _columnCollection[i];
124
DataFrameColumn
newColumn = baseColumn.Multiply(value, inPlace);
143
DataFrameColumn
baseColumn = _columnCollection[i];
144
DataFrameColumn
newColumn = baseColumn.Divide(values[i], inPlace);
162
DataFrameColumn
baseColumn = _columnCollection[i];
163
DataFrameColumn
newColumn = baseColumn.Divide(value, inPlace);
182
DataFrameColumn
baseColumn = _columnCollection[i];
183
DataFrameColumn
newColumn = baseColumn.Modulo(values[i], inPlace);
201
DataFrameColumn
baseColumn = _columnCollection[i];
202
DataFrameColumn
newColumn = baseColumn.Modulo(value, inPlace);
220
DataFrameColumn
baseColumn = _columnCollection[i];
221
DataFrameColumn
newColumn = baseColumn.And(values[i], inPlace);
238
DataFrameColumn
baseColumn = _columnCollection[i];
239
DataFrameColumn
newColumn = baseColumn.And(value, inPlace);
257
DataFrameColumn
baseColumn = _columnCollection[i];
258
DataFrameColumn
newColumn = baseColumn.Or(values[i], inPlace);
275
DataFrameColumn
baseColumn = _columnCollection[i];
276
DataFrameColumn
newColumn = baseColumn.Or(value, inPlace);
294
DataFrameColumn
baseColumn = _columnCollection[i];
295
DataFrameColumn
newColumn = baseColumn.Xor(values[i], inPlace);
312
DataFrameColumn
baseColumn = _columnCollection[i];
313
DataFrameColumn
newColumn = baseColumn.Xor(value, inPlace);
330
DataFrameColumn
baseColumn = _columnCollection[i];
331
DataFrameColumn
newColumn = baseColumn.LeftShift(value, inPlace);
348
DataFrameColumn
baseColumn = _columnCollection[i];
349
DataFrameColumn
newColumn = baseColumn.RightShift(value, inPlace);
368
DataFrameColumn
baseColumn = _columnCollection[i];
369
DataFrameColumn
newColumn = baseColumn.ElementwiseEquals(values[i]);
384
DataFrameColumn
baseColumn = _columnCollection[i];
385
DataFrameColumn
newColumn = baseColumn.ElementwiseEquals(value);
401
DataFrameColumn
baseColumn = _columnCollection[i];
402
DataFrameColumn
newColumn = baseColumn.ElementwiseNotEquals(values[i]);
417
DataFrameColumn
baseColumn = _columnCollection[i];
418
DataFrameColumn
newColumn = baseColumn.ElementwiseNotEquals(value);
434
DataFrameColumn
baseColumn = _columnCollection[i];
435
DataFrameColumn
newColumn = baseColumn.ElementwiseGreaterThanOrEqual(values[i]);
450
DataFrameColumn
baseColumn = _columnCollection[i];
451
DataFrameColumn
newColumn = baseColumn.ElementwiseGreaterThanOrEqual(value);
467
DataFrameColumn
baseColumn = _columnCollection[i];
468
DataFrameColumn
newColumn = baseColumn.ElementwiseLessThanOrEqual(values[i]);
483
DataFrameColumn
baseColumn = _columnCollection[i];
484
DataFrameColumn
newColumn = baseColumn.ElementwiseLessThanOrEqual(value);
500
DataFrameColumn
baseColumn = _columnCollection[i];
501
DataFrameColumn
newColumn = baseColumn.ElementwiseGreaterThan(values[i]);
516
DataFrameColumn
baseColumn = _columnCollection[i];
517
DataFrameColumn
newColumn = baseColumn.ElementwiseGreaterThan(value);
533
DataFrameColumn
baseColumn = _columnCollection[i];
534
DataFrameColumn
newColumn = baseColumn.ElementwiseLessThan(values[i]);
549
DataFrameColumn
baseColumn = _columnCollection[i];
550
DataFrameColumn
newColumn = baseColumn.ElementwiseLessThan(value);
565
DataFrameColumn
baseColumn = _columnCollection[i];
566
DataFrameColumn
newColumn = baseColumn.ReverseAdd(value, inPlace);
583
DataFrameColumn
baseColumn = _columnCollection[i];
584
DataFrameColumn
newColumn = baseColumn.ReverseSubtract(value, inPlace);
601
DataFrameColumn
baseColumn = _columnCollection[i];
602
DataFrameColumn
newColumn = baseColumn.ReverseMultiply(value, inPlace);
619
DataFrameColumn
baseColumn = _columnCollection[i];
620
DataFrameColumn
newColumn = baseColumn.ReverseDivide(value, inPlace);
637
DataFrameColumn
baseColumn = _columnCollection[i];
638
DataFrameColumn
newColumn = baseColumn.ReverseModulo(value, inPlace);
654
DataFrameColumn
baseColumn = _columnCollection[i];
655
DataFrameColumn
newColumn = baseColumn.ReverseAnd(value, inPlace);
671
DataFrameColumn
baseColumn = _columnCollection[i];
672
DataFrameColumn
newColumn = baseColumn.ReverseOr(value, inPlace);
688
DataFrameColumn
baseColumn = _columnCollection[i];
689
DataFrameColumn
newColumn = baseColumn.ReverseXor(value, inPlace);
DataFrame.cs (31)
44
public DataFrame(IEnumerable<
DataFrameColumn
> columns)
50
public DataFrame(params
DataFrameColumn
[] columns)
154
/// An indexer based on <see cref="
DataFrameColumn
.Name"/>
156
/// <param name="columnName">The name of a <see cref="
DataFrameColumn
"/></param>
157
/// <returns>A <see cref="
DataFrameColumn
"/> if it exists.</returns>
159
public
DataFrameColumn
this[string columnName]
198
private DataFrame Clone(
DataFrameColumn
mapIndices = null)
200
List<
DataFrameColumn
> newColumns = new List<
DataFrameColumn
>(Columns.Count);
216
foreach (
DataFrameColumn
column in Columns)
239
foreach (
DataFrameColumn
column in Columns)
294
DataFrameColumn
column = ret.Columns[i];
309
DataFrameColumn
column = df.Columns[i];
324
DataFrameColumn
column = df.Columns[i];
373
DataFrameColumn
column = _columnCollection[columnIndex];
389
DataFrameColumn
column = this[columnName];
421
foreach (
var
column in Columns)
441
foreach (
var
column in Columns)
494
private void ResizeByOneAndAppend(
DataFrameColumn
column, object value)
536
IEnumerator<
DataFrameColumn
> columnEnumerator = ret.Columns.GetEnumerator();
546
DataFrameColumn
column = columnEnumerator.Current;
585
DataFrameColumn
column = columnEnumerator.Current;
596
DataFrameColumn
column = columnEnumerator.Current;
634
DataFrameColumn
column = ret.Columns[index];
653
DataFrameColumn
column = ret.Columns[index];
659
foreach (
DataFrameColumn
column in ret.Columns)
680
DataFrameColumn
column = Columns[columnName];
683
List<
DataFrameColumn
> newColumns = new List<
DataFrameColumn
>(Columns.Count);
686
DataFrameColumn
oldColumn = Columns[i];
687
DataFrameColumn
newColumn = oldColumn.Clone(sortIndices);
DataFrame.IDataView.cs (2)
31
DataFrameColumn
baseColumn = Columns[i];
110
DataFrameColumn
column = _dataFrame.Columns[col];
DataFrame.IO.cs (10)
124
var columns = new List<
DataFrameColumn
>(columnsCount);
128
var
column = CreateColumn(type, name);
148
foreach (
var
column in Columns)
185
var columns = new
DataFrameColumn
[columnsCount];
191
var
column = CreateColumn(type, name);
280
private static
DataFrameColumn
CreateColumn(Type kind, string columnName)
282
DataFrameColumn
ret;
350
private static
DataFrameColumn
CreateColumn(Type kind, string[] columnNames, int columnIndex)
372
List<
DataFrameColumn
> columns;
441
columns = new List<
DataFrameColumn
>(numberOfColumns);
DataFrame.Join.cs (15)
26
private void SetSuffixForDuplicatedColumnNames(DataFrame dataFrame,
DataFrameColumn
column, string leftSuffix, string rightSuffix)
32
DataFrameColumn
existingColumn = dataFrame.Columns[index];
54
DataFrameColumn
newColumn = Columns[i].Clone();
65
DataFrameColumn
newColumn;
88
DataFrameColumn
newColumn;
101
DataFrameColumn
newColumn = other.Columns[i].Clone();
112
DataFrameColumn
newColumn = Columns[i].Clone(numberOfNullsToAppend: numberOfNulls);
118
DataFrameColumn
newColumn = other.Columns[i].Clone(numberOfNullsToAppend: numberOfNulls);
133
DataFrameColumn
newColumn = Columns[i].Clone(mapIndices);
138
DataFrameColumn
newColumn = other.Columns[i].Clone(mapIndices);
146
private static bool IsAnyNullValueInColumns(IReadOnlyCollection<
DataFrameColumn
> columns, long index)
148
foreach (
var
column in columns)
204
DataFrameColumn
shrinkedRetainedColumn = retainedDataFrame.Columns[retainedJoinColumnNames[colNameIndex]];
228
DataFrameColumn
supplementaryColumn = supplementaryDataFrame.Columns[supplemetaryJoinColumnNames[colNameIndex]];
418
DataFrameColumn
column = other.Columns[i].Clone(mapIndicesRight);
DataFrameColumn.BinaryOperations.cs (34)
18
public virtual
DataFrameColumn
Add(
DataFrameColumn
column, bool inPlace = false)
26
public virtual
DataFrameColumn
Add<T>(T value, bool inPlace = false)
34
public virtual
DataFrameColumn
ReverseAdd<T>(T value, bool inPlace = false)
42
public virtual
DataFrameColumn
Subtract(
DataFrameColumn
column, bool inPlace = false)
50
public virtual
DataFrameColumn
Subtract<T>(T value, bool inPlace = false)
58
public virtual
DataFrameColumn
ReverseSubtract<T>(T value, bool inPlace = false)
66
public virtual
DataFrameColumn
Multiply(
DataFrameColumn
column, bool inPlace = false)
74
public virtual
DataFrameColumn
Multiply<T>(T value, bool inPlace = false)
82
public virtual
DataFrameColumn
ReverseMultiply<T>(T value, bool inPlace = false)
90
public virtual
DataFrameColumn
Divide(
DataFrameColumn
column, bool inPlace = false)
98
public virtual
DataFrameColumn
Divide<T>(T value, bool inPlace = false)
106
public virtual
DataFrameColumn
ReverseDivide<T>(T value, bool inPlace = false)
114
public virtual
DataFrameColumn
Modulo(
DataFrameColumn
column, bool inPlace = false)
122
public virtual
DataFrameColumn
Modulo<T>(T value, bool inPlace = false)
130
public virtual
DataFrameColumn
ReverseModulo<T>(T value, bool inPlace = false)
138
public virtual
DataFrameColumn
And(
DataFrameColumn
column, bool inPlace = false)
162
public virtual
DataFrameColumn
Or(
DataFrameColumn
column, bool inPlace = false)
186
public virtual
DataFrameColumn
Xor(
DataFrameColumn
column, bool inPlace = false)
210
public virtual
DataFrameColumn
LeftShift(int value, bool inPlace = false)
218
public virtual
DataFrameColumn
RightShift(int value, bool inPlace = false)
226
public virtual PrimitiveDataFrameColumn<bool> ElementwiseEquals(
DataFrameColumn
column)
242
public virtual PrimitiveDataFrameColumn<bool> ElementwiseNotEquals(
DataFrameColumn
column)
258
public virtual PrimitiveDataFrameColumn<bool> ElementwiseGreaterThanOrEqual(
DataFrameColumn
column)
274
public virtual PrimitiveDataFrameColumn<bool> ElementwiseLessThanOrEqual(
DataFrameColumn
column)
290
public virtual PrimitiveDataFrameColumn<bool> ElementwiseGreaterThan(
DataFrameColumn
column)
306
public virtual PrimitiveDataFrameColumn<bool> ElementwiseLessThan(
DataFrameColumn
column)
DataFrameColumn.BinaryOperators.cs (260)
16
public static
DataFrameColumn
operator +(
DataFrameColumn
left,
DataFrameColumn
right)
21
public static
DataFrameColumn
operator +(
DataFrameColumn
column, byte value)
26
public static
DataFrameColumn
operator +(byte value,
DataFrameColumn
column)
31
public static
DataFrameColumn
operator +(
DataFrameColumn
column, decimal value)
36
public static
DataFrameColumn
operator +(decimal value,
DataFrameColumn
column)
41
public static
DataFrameColumn
operator +(
DataFrameColumn
column, double value)
46
public static
DataFrameColumn
operator +(double value,
DataFrameColumn
column)
51
public static
DataFrameColumn
operator +(
DataFrameColumn
column, float value)
56
public static
DataFrameColumn
operator +(float value,
DataFrameColumn
column)
61
public static
DataFrameColumn
operator +(
DataFrameColumn
column, int value)
66
public static
DataFrameColumn
operator +(int value,
DataFrameColumn
column)
71
public static
DataFrameColumn
operator +(
DataFrameColumn
column, long value)
76
public static
DataFrameColumn
operator +(long value,
DataFrameColumn
column)
81
public static
DataFrameColumn
operator +(
DataFrameColumn
column, sbyte value)
86
public static
DataFrameColumn
operator +(sbyte value,
DataFrameColumn
column)
91
public static
DataFrameColumn
operator +(
DataFrameColumn
column, short value)
96
public static
DataFrameColumn
operator +(short value,
DataFrameColumn
column)
101
public static
DataFrameColumn
operator +(
DataFrameColumn
column, uint value)
106
public static
DataFrameColumn
operator +(uint value,
DataFrameColumn
column)
111
public static
DataFrameColumn
operator +(
DataFrameColumn
column, ulong value)
116
public static
DataFrameColumn
operator +(ulong value,
DataFrameColumn
column)
121
public static
DataFrameColumn
operator +(
DataFrameColumn
column, ushort value)
126
public static
DataFrameColumn
operator +(ushort value,
DataFrameColumn
column)
132
public static
DataFrameColumn
operator -(
DataFrameColumn
left,
DataFrameColumn
right)
137
public static
DataFrameColumn
operator -(
DataFrameColumn
column, byte value)
142
public static
DataFrameColumn
operator -(byte value,
DataFrameColumn
column)
147
public static
DataFrameColumn
operator -(
DataFrameColumn
column, decimal value)
152
public static
DataFrameColumn
operator -(decimal value,
DataFrameColumn
column)
157
public static
DataFrameColumn
operator -(
DataFrameColumn
column, double value)
162
public static
DataFrameColumn
operator -(double value,
DataFrameColumn
column)
167
public static
DataFrameColumn
operator -(
DataFrameColumn
column, float value)
172
public static
DataFrameColumn
operator -(float value,
DataFrameColumn
column)
177
public static
DataFrameColumn
operator -(
DataFrameColumn
column, int value)
182
public static
DataFrameColumn
operator -(int value,
DataFrameColumn
column)
187
public static
DataFrameColumn
operator -(
DataFrameColumn
column, long value)
192
public static
DataFrameColumn
operator -(long value,
DataFrameColumn
column)
197
public static
DataFrameColumn
operator -(
DataFrameColumn
column, sbyte value)
202
public static
DataFrameColumn
operator -(sbyte value,
DataFrameColumn
column)
207
public static
DataFrameColumn
operator -(
DataFrameColumn
column, short value)
212
public static
DataFrameColumn
operator -(short value,
DataFrameColumn
column)
217
public static
DataFrameColumn
operator -(
DataFrameColumn
column, uint value)
222
public static
DataFrameColumn
operator -(uint value,
DataFrameColumn
column)
227
public static
DataFrameColumn
operator -(
DataFrameColumn
column, ulong value)
232
public static
DataFrameColumn
operator -(ulong value,
DataFrameColumn
column)
237
public static
DataFrameColumn
operator -(
DataFrameColumn
column, ushort value)
242
public static
DataFrameColumn
operator -(ushort value,
DataFrameColumn
column)
248
public static
DataFrameColumn
operator *(
DataFrameColumn
left,
DataFrameColumn
right)
253
public static
DataFrameColumn
operator *(
DataFrameColumn
column, byte value)
258
public static
DataFrameColumn
operator *(byte value,
DataFrameColumn
column)
263
public static
DataFrameColumn
operator *(
DataFrameColumn
column, decimal value)
268
public static
DataFrameColumn
operator *(decimal value,
DataFrameColumn
column)
273
public static
DataFrameColumn
operator *(
DataFrameColumn
column, double value)
278
public static
DataFrameColumn
operator *(double value,
DataFrameColumn
column)
283
public static
DataFrameColumn
operator *(
DataFrameColumn
column, float value)
288
public static
DataFrameColumn
operator *(float value,
DataFrameColumn
column)
293
public static
DataFrameColumn
operator *(
DataFrameColumn
column, int value)
298
public static
DataFrameColumn
operator *(int value,
DataFrameColumn
column)
303
public static
DataFrameColumn
operator *(
DataFrameColumn
column, long value)
308
public static
DataFrameColumn
operator *(long value,
DataFrameColumn
column)
313
public static
DataFrameColumn
operator *(
DataFrameColumn
column, sbyte value)
318
public static
DataFrameColumn
operator *(sbyte value,
DataFrameColumn
column)
323
public static
DataFrameColumn
operator *(
DataFrameColumn
column, short value)
328
public static
DataFrameColumn
operator *(short value,
DataFrameColumn
column)
333
public static
DataFrameColumn
operator *(
DataFrameColumn
column, uint value)
338
public static
DataFrameColumn
operator *(uint value,
DataFrameColumn
column)
343
public static
DataFrameColumn
operator *(
DataFrameColumn
column, ulong value)
348
public static
DataFrameColumn
operator *(ulong value,
DataFrameColumn
column)
353
public static
DataFrameColumn
operator *(
DataFrameColumn
column, ushort value)
358
public static
DataFrameColumn
operator *(ushort value,
DataFrameColumn
column)
364
public static
DataFrameColumn
operator /(
DataFrameColumn
left,
DataFrameColumn
right)
369
public static
DataFrameColumn
operator /(
DataFrameColumn
column, byte value)
374
public static
DataFrameColumn
operator /(byte value,
DataFrameColumn
column)
379
public static
DataFrameColumn
operator /(
DataFrameColumn
column, decimal value)
384
public static
DataFrameColumn
operator /(decimal value,
DataFrameColumn
column)
389
public static
DataFrameColumn
operator /(
DataFrameColumn
column, double value)
394
public static
DataFrameColumn
operator /(double value,
DataFrameColumn
column)
399
public static
DataFrameColumn
operator /(
DataFrameColumn
column, float value)
404
public static
DataFrameColumn
operator /(float value,
DataFrameColumn
column)
409
public static
DataFrameColumn
operator /(
DataFrameColumn
column, int value)
414
public static
DataFrameColumn
operator /(int value,
DataFrameColumn
column)
419
public static
DataFrameColumn
operator /(
DataFrameColumn
column, long value)
424
public static
DataFrameColumn
operator /(long value,
DataFrameColumn
column)
429
public static
DataFrameColumn
operator /(
DataFrameColumn
column, sbyte value)
434
public static
DataFrameColumn
operator /(sbyte value,
DataFrameColumn
column)
439
public static
DataFrameColumn
operator /(
DataFrameColumn
column, short value)
444
public static
DataFrameColumn
operator /(short value,
DataFrameColumn
column)
449
public static
DataFrameColumn
operator /(
DataFrameColumn
column, uint value)
454
public static
DataFrameColumn
operator /(uint value,
DataFrameColumn
column)
459
public static
DataFrameColumn
operator /(
DataFrameColumn
column, ulong value)
464
public static
DataFrameColumn
operator /(ulong value,
DataFrameColumn
column)
469
public static
DataFrameColumn
operator /(
DataFrameColumn
column, ushort value)
474
public static
DataFrameColumn
operator /(ushort value,
DataFrameColumn
column)
480
public static
DataFrameColumn
operator %(
DataFrameColumn
left,
DataFrameColumn
right)
485
public static
DataFrameColumn
operator %(
DataFrameColumn
column, byte value)
490
public static
DataFrameColumn
operator %(byte value,
DataFrameColumn
column)
495
public static
DataFrameColumn
operator %(
DataFrameColumn
column, decimal value)
500
public static
DataFrameColumn
operator %(decimal value,
DataFrameColumn
column)
505
public static
DataFrameColumn
operator %(
DataFrameColumn
column, double value)
510
public static
DataFrameColumn
operator %(double value,
DataFrameColumn
column)
515
public static
DataFrameColumn
operator %(
DataFrameColumn
column, float value)
520
public static
DataFrameColumn
operator %(float value,
DataFrameColumn
column)
525
public static
DataFrameColumn
operator %(
DataFrameColumn
column, int value)
530
public static
DataFrameColumn
operator %(int value,
DataFrameColumn
column)
535
public static
DataFrameColumn
operator %(
DataFrameColumn
column, long value)
540
public static
DataFrameColumn
operator %(long value,
DataFrameColumn
column)
545
public static
DataFrameColumn
operator %(
DataFrameColumn
column, sbyte value)
550
public static
DataFrameColumn
operator %(sbyte value,
DataFrameColumn
column)
555
public static
DataFrameColumn
operator %(
DataFrameColumn
column, short value)
560
public static
DataFrameColumn
operator %(short value,
DataFrameColumn
column)
565
public static
DataFrameColumn
operator %(
DataFrameColumn
column, uint value)
570
public static
DataFrameColumn
operator %(uint value,
DataFrameColumn
column)
575
public static
DataFrameColumn
operator %(
DataFrameColumn
column, ulong value)
580
public static
DataFrameColumn
operator %(ulong value,
DataFrameColumn
column)
585
public static
DataFrameColumn
operator %(
DataFrameColumn
column, ushort value)
590
public static
DataFrameColumn
operator %(ushort value,
DataFrameColumn
column)
596
public static
DataFrameColumn
operator &(
DataFrameColumn
left,
DataFrameColumn
right)
601
public static
DataFrameColumn
operator &(
DataFrameColumn
column, bool value)
606
public static
DataFrameColumn
operator &(bool value,
DataFrameColumn
column)
611
public static
DataFrameColumn
operator |(
DataFrameColumn
left,
DataFrameColumn
right)
616
public static
DataFrameColumn
operator |(
DataFrameColumn
column, bool value)
621
public static
DataFrameColumn
operator |(bool value,
DataFrameColumn
column)
626
public static
DataFrameColumn
operator ^(
DataFrameColumn
left,
DataFrameColumn
right)
631
public static
DataFrameColumn
operator ^(
DataFrameColumn
column, bool value)
636
public static
DataFrameColumn
operator ^(bool value,
DataFrameColumn
column)
641
public static
DataFrameColumn
operator <<(
DataFrameColumn
column, int value)
646
public static
DataFrameColumn
operator >>(
DataFrameColumn
column, int value)
DataFrameColumn.Computations.cs (10)
18
public virtual
DataFrameColumn
Abs(bool inPlace = false)
42
public virtual
DataFrameColumn
CumulativeMax(bool inPlace = false)
50
public virtual
DataFrameColumn
CumulativeMax(IEnumerable<long> rowIndices, bool inPlace = false)
58
public virtual
DataFrameColumn
CumulativeMin(bool inPlace = false)
66
public virtual
DataFrameColumn
CumulativeMin(IEnumerable<long> rowIndices, bool inPlace = false)
74
public virtual
DataFrameColumn
CumulativeProduct(bool inPlace = false)
82
public virtual
DataFrameColumn
CumulativeProduct(IEnumerable<long> rowIndices, bool inPlace = false)
90
public virtual
DataFrameColumn
CumulativeSum(bool inPlace = false)
98
public virtual
DataFrameColumn
CumulativeSum(IEnumerable<long> rowIndices, bool inPlace = false)
170
public virtual
DataFrameColumn
Round(bool inPlace = false)
DataFrameColumn.cs (27)
22
/// The base <see cref="
DataFrameColumn
"/> constructor.
216
/// <returns>A new <see cref="
DataFrameColumn
"/></returns>
217
public
DataFrameColumn
Clone(long numberOfNullsToAppend = 0) => CloneImplementation(numberOfNullsToAppend);
225
/// <returns>A new <see cref="
DataFrameColumn
"/></returns>
226
public
DataFrameColumn
Clone(
DataFrameColumn
mapIndices, bool invertMapIndices = false, long numberOfNullsToAppend = 0) => CloneImplementation(mapIndices, invertMapIndices, numberOfNullsToAppend);
234
/// <returns>A new <see cref="
DataFrameColumn
"/></returns>
235
protected abstract
DataFrameColumn
CloneImplementation(
DataFrameColumn
mapIndices, bool invertMapIndices, long numberOfNullsToAppend);
237
protected abstract
DataFrameColumn
CloneImplementation(long numberOfNullsToAppend = 0);
244
public
DataFrameColumn
Sort(bool ascending = true, bool putNullValuesLast = true)
263
public abstract Dictionary<long, ICollection<long>> GetGroupedOccurrences(
DataFrameColumn
other, out HashSet<long> otherColumnNullIndices);
272
protected Dictionary<long, ICollection<long>> GetGroupedOccurrences<TKey>(
DataFrameColumn
other, out HashSet<long> otherColumnNullIndices)
308
public virtual
DataFrameColumn
FillNulls(object value, bool inPlace = false) => FillNullsImplementation(value, inPlace);
310
protected abstract
DataFrameColumn
FillNullsImplementation(object value, bool inPlace);
313
/// Returns a <see cref="
DataFrameColumn
"/> with no missing values.
315
public virtual
DataFrameColumn
DropNulls() => DropNullsImplementation();
317
protected abstract
DataFrameColumn
DropNullsImplementation();
345
/// Appends a value to this <see cref="
DataFrameColumn
"/> using <paramref name="cursor"/>
365
public virtual
DataFrameColumn
Clamp<U>(U min, U max, bool inPlace = false) => ClampImplementation(min, max, inPlace);
374
protected virtual
DataFrameColumn
ClampImplementation<U>(U min, U max, bool inPlace) => throw new NotImplementedException();
382
public virtual
DataFrameColumn
Filter<U>(U min, U max) => FilterImplementation(min, max);
390
protected virtual
DataFrameColumn
FilterImplementation<U>(U min, U max) => throw new NotImplementedException();
424
/// Returns a <see cref= "
DataFrameColumn
"/> with statistics that describe the column
426
public virtual
DataFrameColumn
Description() => throw new NotImplementedException();
429
/// A preview of the contents of this <see cref="
DataFrameColumn
"/> as a string.
431
/// <returns>A preview of the contents of this <see cref="
DataFrameColumn
"/>.</returns>
DataFrameColumnCollection.cs (33)
14
public class DataFrameColumnCollection : Collection<
DataFrameColumn
>
21
internal DataFrameColumnCollection(IEnumerable<
DataFrameColumn
> columns, Action columnsChanged) : base()
25
foreach (
DataFrameColumn
column in columns)
43
var
column = this[currentName];
48
public void SetColumnName(
DataFrameColumn
column, string newName)
54
internal void UpdateColumnNameMetadata(
DataFrameColumn
column, string newName)
66
DataFrameColumn
newColumn = new PrimitiveDataFrameColumn<T>(columnName, column);
70
protected override void InsertItem(int columnIndex,
DataFrameColumn
column)
103
protected override void SetItem(int columnIndex,
DataFrameColumn
column)
153
/// Searches for a <see cref="
DataFrameColumn
"/> with the specified <paramref name="columnName"/> and returns the zero-based index of the first occurrence if found. Returns -1 otherwise
176
/// An indexer based on <see cref="
DataFrameColumn
.Name"/>
178
/// <param name="columnName">The name of a <see cref="
DataFrameColumn
"/></param>
179
/// <returns>A <see cref="
DataFrameColumn
"/> if it exists.</returns>
181
public
DataFrameColumn
this[string columnName]
195
DataFrameColumn
newColumn = value;
217
DataFrameColumn
column = this[name];
234
DataFrameColumn
column = this[name];
251
DataFrameColumn
column = this[name];
268
DataFrameColumn
column = this[name];
285
DataFrameColumn
column = this[name];
295
/// Gets the <see cref="ByteDataFrameColumn"/> with the specified <paramref name="name"/> and attempts to return it as an <see cref="ByteDataFrameColumn"/>. If <see cref="
DataFrameColumn
.DataType"/> is not of type <see cref="Byte"/>, an exception is thrown.
302
DataFrameColumn
column = this[name];
319
DataFrameColumn
column = this[name];
336
DataFrameColumn
column = this[name];
353
DataFrameColumn
column = this[name];
370
DataFrameColumn
column = this[name];
387
DataFrameColumn
column = this[name];
404
DataFrameColumn
column = this[name];
421
DataFrameColumn
column = this[name];
438
DataFrameColumn
column = this[name];
455
DataFrameColumn
column = this[name];
472
DataFrameColumn
column = this[name];
489
DataFrameColumn
column = this[name];
DataFrameColumns\ArrowStringDataFrameColumn.cs (13)
373
public new ArrowStringDataFrameColumn Clone(
DataFrameColumn
mapIndices, bool invertMapIndices = false, long numberOfNullsToAppend = 0)
379
protected override
DataFrameColumn
CloneImplementation(long numberOfNullsToAppend)
393
protected override
DataFrameColumn
CloneImplementation(
DataFrameColumn
mapIndices, bool invertMapIndices = false, long numberOfNullsToAppend = 0)
546
protected override
DataFrameColumn
FillNullsImplementation(object value, bool inPlace)
564
protected override
DataFrameColumn
DropNullsImplementation()
577
public override
DataFrameColumn
Clamp<U>(U min, U max, bool inPlace = false) => throw new NotSupportedException();
579
public override
DataFrameColumn
Filter<U>(U min, U max) => throw new NotSupportedException();
624
if (value is
DataFrameColumn
column)
632
public override PrimitiveDataFrameColumn<bool> ElementwiseEquals(
DataFrameColumn
column)
665
if (value is
DataFrameColumn
column)
673
public override PrimitiveDataFrameColumn<bool> ElementwiseNotEquals(
DataFrameColumn
column)
697
public override Dictionary<long, ICollection<long>> GetGroupedOccurrences(
DataFrameColumn
other, out HashSet<long> otherColumnNullIndices)
DataFrameColumns\StringDataFrameColumn.cs (10)
196
public override
DataFrameColumn
Clamp<U>(U min, U max, bool inPlace = false) => throw new NotSupportedException();
198
public override
DataFrameColumn
Filter<U>(U min, U max) => throw new NotSupportedException();
278
public new StringDataFrameColumn Clone(
DataFrameColumn
mapIndices, bool invertMapIndices, long numberOfNullsToAppend)
288
protected override
DataFrameColumn
CloneImplementation(long numberOfNullsToAppend)
300
protected override
DataFrameColumn
CloneImplementation(
DataFrameColumn
mapIndices, bool invertMapIndices = false, long numberOfNullsToAppend = 0)
393
return new DataFrame(new List<
DataFrameColumn
> { keys, counts });
462
protected override
DataFrameColumn
FillNullsImplementation(object value, bool inPlace)
476
protected override
DataFrameColumn
DropNullsImplementation()
534
public override Dictionary<long, ICollection<long>> GetGroupedOccurrences(
DataFrameColumn
other, out HashSet<long> otherColumnNullIndices)
DataFrameColumns\VBufferDataFrameColumn.cs (7)
180
public override Dictionary<long, ICollection<long>> GetGroupedOccurrences(
DataFrameColumn
other, out HashSet<long> otherColumnNullIndices)
270
public new VBufferDataFrameColumn<T> Clone(
DataFrameColumn
mapIndices, bool invertMapIndices, long numberOfNullsToAppend)
280
protected override
DataFrameColumn
CloneImplementation(
DataFrameColumn
mapIndices, bool invertMapIndices = false, long numberOfNullsToAppend = 0)
303
protected override
DataFrameColumn
CloneImplementation(long numberOfNullsToAppend)
375
protected override
DataFrameColumn
FillNullsImplementation(object value, bool inPlace)
381
protected override
DataFrameColumn
DropNullsImplementation()
DataFrameRow.cs (1)
34
foreach (
DataFrameColumn
column in _dataFrame.Columns)
GroupBy.cs (26)
146
DataFrameColumn
firstColumn = _dataFrame.Columns[_groupByColumnIndex].Clone(empty);
157
DataFrameColumn
column = _dataFrame.Columns[columnIndex];
164
DataFrameColumn
retColumn;
189
DataFrameColumn
firstColumn = _dataFrame.Columns[_groupByColumnIndex].Clone(empty);
202
DataFrameColumn
column = _dataFrame.Columns[columnIndex];
205
DataFrameColumn
retColumn;
231
DataFrameColumn
firstColumn = _dataFrame.Columns[_groupByColumnIndex].Clone(empty);
242
DataFrameColumn
column = _dataFrame.Columns[columnIndex];
249
DataFrameColumn
retColumn;
285
DataFrameColumn
firstColumn = _dataFrame.Columns[_groupByColumnIndex].Clone(empty);
296
DataFrameColumn
column = _dataFrame.Columns[columnIndex];
305
DataFrameColumn
retColumn;
335
private
DataFrameColumn
ResizeAndInsertColumn(int columnIndex, long rowIndex, bool firstGroup, DataFrame ret, PrimitiveDataFrameColumn<long> empty, Func<string,
DataFrameColumn
> getColumn = null)
339
DataFrameColumn
column = _dataFrame.Columns[columnIndex];
340
DataFrameColumn
retColumn;
359
DataFrameColumn
firstColumn = _dataFrame.Columns[_groupByColumnIndex].Clone(empty);
369
DataFrameColumn
retColumn = ResizeAndInsertColumn(columnIndex, rowIndex, firstGroup, ret, empty);
387
DataFrameColumn
firstColumn = _dataFrame.Columns[_groupByColumnIndex].Clone(empty);
397
DataFrameColumn
retColumn = ResizeAndInsertColumn(columnIndex, rowIndex, firstGroup, ret, empty);
415
DataFrameColumn
firstColumn = _dataFrame.Columns[_groupByColumnIndex].Clone(empty);
425
DataFrameColumn
retColumn = ResizeAndInsertColumn(columnIndex, rowIndex, firstGroup, ret, empty);
443
DataFrameColumn
firstColumn = _dataFrame.Columns[_groupByColumnIndex].Clone(empty);
453
DataFrameColumn
retColumn = ResizeAndInsertColumn(columnIndex, rowIndex, firstGroup, ret, empty);
471
DataFrameColumn
firstColumn = _dataFrame.Columns[_groupByColumnIndex].Clone(empty);
482
DataFrameColumn
retColumn = ResizeAndInsertColumn(columnIndex, rowIndex, firstGroup, ret, empty, (name) => new PrimitiveDataFrameColumn<double>(name));
IDataView.Extension.cs (3)
48
List<
DataFrameColumn
> dataFrameColumns = new List<
DataFrameColumn
>(schema.Count);
151
private static
DataFrameColumn
GetVectorDataFrame(VectorDataViewType vectorType, string name)
PrimitiveDataFrameColumn.BinaryOperations.cs (56)
18
public override
DataFrameColumn
Add(
DataFrameColumn
column, bool inPlace = false)
56
public override
DataFrameColumn
Subtract(
DataFrameColumn
column, bool inPlace = false)
94
public override
DataFrameColumn
Multiply(
DataFrameColumn
column, bool inPlace = false)
132
public override
DataFrameColumn
Divide(
DataFrameColumn
column, bool inPlace = false)
170
public override
DataFrameColumn
Modulo(
DataFrameColumn
column, bool inPlace = false)
208
public override
DataFrameColumn
And(
DataFrameColumn
column, bool inPlace = false)
246
public override
DataFrameColumn
Or(
DataFrameColumn
column, bool inPlace = false)
284
public override
DataFrameColumn
Xor(
DataFrameColumn
column, bool inPlace = false)
324
public override
DataFrameColumn
Add<U>(U value, bool inPlace = false)
326
DataFrameColumn
column = value as
DataFrameColumn
;
335
public override
DataFrameColumn
ReverseAdd<U>(U value, bool inPlace = false)
341
public override
DataFrameColumn
Subtract<U>(U value, bool inPlace = false)
343
DataFrameColumn
column = value as
DataFrameColumn
;
352
public override
DataFrameColumn
ReverseSubtract<U>(U value, bool inPlace = false)
358
public override
DataFrameColumn
Multiply<U>(U value, bool inPlace = false)
360
DataFrameColumn
column = value as
DataFrameColumn
;
369
public override
DataFrameColumn
ReverseMultiply<U>(U value, bool inPlace = false)
375
public override
DataFrameColumn
Divide<U>(U value, bool inPlace = false)
377
DataFrameColumn
column = value as
DataFrameColumn
;
386
public override
DataFrameColumn
ReverseDivide<U>(U value, bool inPlace = false)
392
public override
DataFrameColumn
Modulo<U>(U value, bool inPlace = false)
394
DataFrameColumn
column = value as
DataFrameColumn
;
403
public override
DataFrameColumn
ReverseModulo<U>(U value, bool inPlace = false)
427
public override
DataFrameColumn
LeftShift(int value, bool inPlace = false)
433
public override
DataFrameColumn
RightShift(int value, bool inPlace = false)
439
public override PrimitiveDataFrameColumn<bool> ElementwiseEquals(
DataFrameColumn
column)
482
DataFrameColumn
column = value as
DataFrameColumn
;
491
public override PrimitiveDataFrameColumn<bool> ElementwiseNotEquals(
DataFrameColumn
column)
534
DataFrameColumn
column = value as
DataFrameColumn
;
543
public override PrimitiveDataFrameColumn<bool> ElementwiseGreaterThanOrEqual(
DataFrameColumn
column)
584
DataFrameColumn
column = value as
DataFrameColumn
;
593
public override PrimitiveDataFrameColumn<bool> ElementwiseLessThanOrEqual(
DataFrameColumn
column)
634
DataFrameColumn
column = value as
DataFrameColumn
;
643
public override PrimitiveDataFrameColumn<bool> ElementwiseGreaterThan(
DataFrameColumn
column)
684
DataFrameColumn
column = value as
DataFrameColumn
;
693
public override PrimitiveDataFrameColumn<bool> ElementwiseLessThan(
DataFrameColumn
column)
734
DataFrameColumn
column = value as
DataFrameColumn
;
PrimitiveDataFrameColumn.Computations.cs (10)
19
public override
DataFrameColumn
Abs(bool inPlace = false)
38
public override
DataFrameColumn
CumulativeMax(bool inPlace = false)
45
public override
DataFrameColumn
CumulativeMax(IEnumerable<long> rowIndices, bool inPlace = false)
52
public override
DataFrameColumn
CumulativeMin(bool inPlace = false)
59
public override
DataFrameColumn
CumulativeMin(IEnumerable<long> rowIndices, bool inPlace = false)
66
public override
DataFrameColumn
CumulativeProduct(bool inPlace = false)
73
public override
DataFrameColumn
CumulativeProduct(IEnumerable<long> rowIndices, bool inPlace = false)
80
public override
DataFrameColumn
CumulativeSum(bool inPlace = false)
87
public override
DataFrameColumn
CumulativeSum(IEnumerable<long> rowIndices, bool inPlace = false)
142
public override
DataFrameColumn
Round(bool inPlace = false)
PrimitiveDataFrameColumn.cs (15)
348
protected override
DataFrameColumn
FillNullsImplementation(object value, bool inPlace)
360
protected override
DataFrameColumn
DropNullsImplementation()
391
return new DataFrame(new List<
DataFrameColumn
> { keys, counts });
417
public new PrimitiveDataFrameColumn<T> Clone(
DataFrameColumn
mapIndices, bool invertMapIndices = false, long numberOfNullsToAppend = 0)
423
protected override
DataFrameColumn
CloneImplementation(
DataFrameColumn
mapIndices, bool invertMapIndices, long numberOfNullsToAppend)
449
protected override
DataFrameColumn
CloneImplementation(long numberOfNullsToAppend)
714
protected override
DataFrameColumn
ClampImplementation<U>(U min, U max, bool inPlace)
744
protected override
DataFrameColumn
FilterImplementation<U>(U min, U max)
753
public override
DataFrameColumn
Description()
923
public override Dictionary<long, ICollection<long>> GetGroupedOccurrences(
DataFrameColumn
other, out HashSet<long> otherColumnNullIndices)
952
internal
DataFrameColumn
HandleOperationImplementation<U>(BinaryOperation operation, PrimitiveDataFrameColumn<U> column, bool inPlace)
1042
internal
DataFrameColumn
HandleOperationImplementation<U>(BinaryOperation operation, U value, bool inPlace)
1120
internal
DataFrameColumn
HandleReverseOperationImplementation<U>(BinaryOperation operation, U value, bool inPlace = false)
1215
internal
DataFrameColumn
HandleOperationImplementation(BinaryIntOperation operation, int value, bool inPlace)
StringDataFrameColumn.BinaryOperations.cs (11)
16
public override
DataFrameColumn
Add(
DataFrameColumn
column, bool inPlace = false)
71
public override
DataFrameColumn
Add<T>(T value, bool inPlace = false)
76
internal static PrimitiveDataFrameColumn<bool> ElementwiseEqualsImplementation(
DataFrameColumn
left,
DataFrameColumn
right)
92
public override PrimitiveDataFrameColumn<bool> ElementwiseEquals(
DataFrameColumn
column)
113
if (value is
DataFrameColumn
column)
120
internal static PrimitiveDataFrameColumn<bool> ElementwiseNotEqualsImplementation(
DataFrameColumn
left,
DataFrameColumn
column)
165
public override PrimitiveDataFrameColumn<bool> ElementwiseNotEquals(
DataFrameColumn
column)
176
if (value is
DataFrameColumn
column)
Microsoft.Data.Analysis.Interactive.Tests (2)
DataFrameInteractiveTests.cs (2)
22
DataFrameColumn
dataFrameColumn1 = new Int32DataFrameColumn("Int1", Enumerable.Range(0, length).Select(x => x));
23
DataFrameColumn
dataFrameColumn2 = new Int32DataFrameColumn("Int2", Enumerable.Range(10, length).Select(x => x));
Microsoft.Data.Analysis.Tests (155)
ArrowIntegrationTests.cs (1)
137
DataFrame df = new DataFrame(new List<
DataFrameColumn
>() { ageColumn, lengthColumn, stringColumn });
ArrowStringColumnTests.cs (1)
65
DataFrameColumn
clone = stringColumn.Clone(numberOfNullsToAppend: 5);
DataFrame.IOTests.cs (8)
27
foreach (
DataFrameColumn
column in df.Columns)
362
foreach (
var
column in df.Columns)
468
foreach (
var
column in df.Columns)
532
foreach (
var
column in df.Columns)
553
var
dateTimeColumn = df.Columns["date"];
805
foreach (
var
column in df.Columns)
848
foreach (
var
column in df.Columns)
910
foreach (
var
column in df.Columns)
DataFrameGroupByTests.cs (2)
107
DataFrameColumn
parityColumn = new StringDataFrameColumn("Parity", Enumerable.Range(0, length).Select(x => x % 2 == 0 ? "even" : "odd"));
108
DataFrameColumn
tensColumn = new Int32DataFrameColumn("Tens", Enumerable.Range(0, length).Select(x => x / 10));
DataFrameIDataViewTests.cs (6)
110
DataFrameColumn
boolColumn = new PrimitiveDataFrameColumn<bool>("Bool", Enumerable.Range(0, (int)df.Rows.Count).Select(x => x % 2 == 1));
116
DataFrameColumn
boolClone = boolColumn.Clone();
384
foreach (
var
column in df.Columns)
401
foreach (
var
column in df.Columns)
419
foreach (
var
column in df.Columns)
436
foreach (
var
column in df.Columns)
DataFrameTests.BinaryOperations.cs (10)
94
DataFrameColumn
newColumn;
95
DataFrameColumn
verify;
110
var
df1Column = df1.Columns[i] + 1;
111
var
df2Column = df2.Columns[i] + 1;
252
DataFrameColumn
newCol = stringColumn.ElementwiseEquals(4);
270
DataFrameColumn
stringColumnCopyAsBaseColumn = stringColumnCopy;
298
DataFrameColumn
stringColumn = new StringDataFrameColumn("String", Enumerable.Range(0, 10).Select(x => x.ToString()));
301
DataFrameColumn
newCol = stringColumn.ElementwiseEquals(5);
309
DataFrameColumn
stringColumnCopy = new StringDataFrameColumn("String", Enumerable.Range(0, 10).Select(x => x.ToString()));
339
DataFrameColumn
addString = typedStringColumn + "suffix";
DataFrameTests.Computations.cs (17)
23
DataFrameColumn
absColumn = df.Columns["Int"].Abs();
63
DataFrameColumn
doubleColumn = df.Columns["Double"].CumulativeMax();
82
DataFrameColumn
floatColumn = df.Columns["Float"].CumulativeMin();
100
DataFrameColumn
uintColumn = df.Columns["Uint"].CumulativeProduct();
106
DataFrameColumn
ushortColumn = df.Columns["Ushort"].CumulativeSum();
119
DataFrameColumn
roundColumn = df.Columns["Double"].Round();
128
DataFrameColumn
column = df.Columns[i];
185
DataFrameColumn
absColumn = df.Columns["Int"].Abs();
221
DataFrameColumn
dateTimeColumn = df.Columns["DateTime"].CumulativeMax();
232
DataFrameColumn
doubleColumn = df.Columns["Double"].CumulativeMax();
251
DataFrameColumn
floatColumn = df.Columns["Float"].CumulativeMin();
269
DataFrameColumn
uintColumn = df.Columns["Uint"].CumulativeProduct();
275
DataFrameColumn
ushortColumn = df.Columns["Ushort"].CumulativeSum();
288
DataFrameColumn
roundColumn = df.Columns["Double"].Round();
297
DataFrameColumn
column = df.Columns[i];
483
var
col3 = dfTest["col1"].And(dfTest["col2"]);
500
var
col3 = dfTest["col1"].Or(dfTest["col2"]);
DataFrameTests.cs (72)
51
var dc0 =
DataFrameColumn
.Create("a0", new int[] { 0, 0 });
53
var
dc = df.Columns["a1"];
61
DataFrameColumn
intColumn = new Int32DataFrameColumn("IntColumn", Enumerable.Range(0, rowCount).Select(x => x));
62
DataFrameColumn
floatColumn = new SingleDataFrameColumn("FloatColumn", Enumerable.Range(0, rowCount).Select(x => (float)x));
75
DataFrameColumn
bigColumn = new SingleDataFrameColumn("BigColumn", Enumerable.Range(0, rowCount + 1).Select(x => (float)x));
80
DataFrameColumn
smallColumn = new SingleDataFrameColumn("SmallColumn", Enumerable.Range(0, rowCount - 1).Select(x => (float)x));
85
DataFrameColumn
repeatedName = new SingleDataFrameColumn("FloatColumn", Enumerable.Range(0, rowCount).Select(x => (float)x));
89
DataFrameColumn
extraColumn = new SingleDataFrameColumn("OtherFloatColumn", Enumerable.Range(0, rowCount).Select(x => (float)x));
94
DataFrameColumn
intColumnCopy = new Int32DataFrameColumn("IntColumn", Enumerable.Range(0, rowCount).Select(x => x));
97
DataFrameColumn
differentIntColumn = new Int32DataFrameColumn("IntColumn1", Enumerable.Range(0, rowCount).Select(x => x));
116
DataFrameColumn
intColumn = new Int32DataFrameColumn("NewIntColumn", Enumerable.Range(0, 10).Select(x => x));
119
DataFrameColumn
originalLastColumn = dataFrame.Columns[columnCount - 1];
130
DataFrameColumn
intColumn_1 = dataFrame.Columns["NewIntColumn"];
134
DataFrameColumn
lastColumn_1 = dataFrame.Columns[originalLastColumn.Name];
150
DataFrameColumn
intColumn = new Int32DataFrameColumn("NewIntColumn", Enumerable.Range(0, 10).Select(x => x));
187
var
renamedColumn = dataframe["Town"];
206
var
renamedColumn = dataframe["Town"];
318
DataFrameColumn
originalColumn = df.Columns[c];
319
DataFrameColumn
firstColumn = first.Columns[originalColumn.Name];
330
DataFrameColumn
originalColumn = df.Columns[c];
331
DataFrameColumn
headColumn = head.Columns[originalColumn.Name];
337
DataFrameColumn
originalColumn = df.Columns[c];
340
DataFrameColumn
headColumn = head.Columns[originalColumn.Name];
353
DataFrameColumn
originalColumn = df.Columns[c];
354
DataFrameColumn
tailColumn = tail.Columns[originalColumn.Name];
365
DataFrameColumn
originalColumn = df.Columns[c];
368
DataFrameColumn
maxColumn = max.Columns[originalColumn.Name];
388
DataFrameColumn
originalColumn = df.Columns[c];
391
DataFrameColumn
minColumn = min.Columns[originalColumn.Name];
394
DataFrameColumn
productColumn = product.Columns[originalColumn.Name];
397
DataFrameColumn
sumColumn = sum.Columns[originalColumn.Name];
486
DataFrameColumn
baseColumn = df.Columns[i];
562
DataFrameColumn
clamped = df.Columns["Int"].Clamp(3, 7);
612
DataFrameColumn
column = clampedColumn.Columns[c];
727
DataFrameColumn
descriptionColumn = description.Columns[0];
735
DataFrameColumn
column = description.Columns[i];
745
DataFrameColumn
dateTimeColumn = description.Columns[description.Columns.Count - 1];
768
DataFrameColumn
infoColumn = Info.Columns[0];
775
DataFrameColumn
column = Info.Columns[i];
799
DataFrameColumn
dataFrameColumn1 = new Int32DataFrameColumn("Int1");
823
DataFrameColumn
filled = strColumn.FillNulls("foo");
921
DataFrameColumn
dfColumn = df.Columns[i];
922
DataFrameColumn
cloneColumn = clone.Columns[i];
948
IReadOnlyList<
DataFrameColumn
> columns = df.Columns;
951
foreach (
DataFrameColumn
dataFrameColumn in columns)
999
DataFrameColumn
column = df.Columns[i];
1004
foreach (
var
column in df.Columns)
1239
void AssertLengthTypeAndValues(
DataFrameColumn
column, Type type)
1248
DataFrameColumn
stringColumn =
DataFrameColumn
.Create("String", Enumerable.Range(0, length).Select(x => x.ToString()));
1250
DataFrameColumn
byteColumn =
DataFrameColumn
.Create("Byte", Enumerable.Range(0, length).Select(x => (byte)x));
1252
DataFrameColumn
decimalColumn =
DataFrameColumn
.Create("Decimal", Enumerable.Range(0, length).Select(x => (decimal)x));
1254
DataFrameColumn
doubleColumn =
DataFrameColumn
.Create("Double", Enumerable.Range(0, length).Select(x => (double)x));
1256
DataFrameColumn
floatColumn =
DataFrameColumn
.Create("Float", Enumerable.Range(0, length).Select(x => (float)x));
1258
DataFrameColumn
intColumn =
DataFrameColumn
.Create("Int", Enumerable.Range(0, length).Select(x => x));
1260
DataFrameColumn
longColumn =
DataFrameColumn
.Create("Long", Enumerable.Range(0, length).Select(x => (long)x));
1262
DataFrameColumn
sbyteColumn =
DataFrameColumn
.Create("Sbyte", Enumerable.Range(0, length).Select(x => (sbyte)x));
1264
DataFrameColumn
shortColumn =
DataFrameColumn
.Create("Short", Enumerable.Range(0, length).Select(x => (short)x));
1266
DataFrameColumn
uintColumn =
DataFrameColumn
.Create("Uint", Enumerable.Range(0, length).Select(x => (uint)x));
1268
DataFrameColumn
ulongColumn =
DataFrameColumn
.Create("Ulong", Enumerable.Range(0, length).Select(x => (ulong)x));
1270
DataFrameColumn
ushortColumn =
DataFrameColumn
.Create("Ushort", Enumerable.Range(0, length).Select(x => (ushort)x));
DataFrameTests.Filter.cs (6)
20
DataFrameColumn
filtered = df.Columns["Int"].Filter(3, 7);
37
DataFrameColumn
column = boolColumnFiltered.Columns[i];
53
DataFrameColumn
intFilteredColumn = intEnumerableFiltered.Columns[i];
54
DataFrameColumn
dfColumn = df.Columns[i];
55
DataFrameColumn
boolFilteredColumn = boolEnumerableFiltered.Columns[i];
56
DataFrameColumn
longFilteredColumn = longEnumerableFiltered.Columns[i];
DataFrameTests.Join.cs (12)
94
DataFrameColumn
joinColumn = join.Columns[i];
95
DataFrameColumn
isEqual;
101
DataFrameColumn
leftColumn = left.Columns[i];
107
DataFrameColumn
rightColumn = right.Columns[columnIndex];
108
DataFrameColumn
compareColumn = rightColumn.Length <= join.Rows.Count ? rightColumn.Clone(numberOfNullsToAppend: join.Rows.Count - rightColumn.Length) : rightColumn.Clone(mapIndices);
116
DataFrameColumn
leftColumn = left.Columns[i];
117
DataFrameColumn
compareColumn = leftColumn.Length <= join.Rows.Count ? leftColumn.Clone(numberOfNullsToAppend: join.Rows.Count - leftColumn.Length) : leftColumn.Clone(mapIndices);
123
DataFrameColumn
rightColumn = right.Columns[columnIndex];
131
DataFrameColumn
leftColumn = left.Columns[i];
137
DataFrameColumn
rightColumn = right.Columns[columnIndex];
145
DataFrameColumn
leftColumn = left.Columns[i];
151
DataFrameColumn
rightColumn = right.Columns[columnIndex];
DataFrameTests.Merge.cs (2)
22
DataFrameColumn
leftStringColumn = new StringDataFrameColumn("String", Enumerable.Range(0, leftCount).Select(x => "Left"));
26
DataFrameColumn
rightStringColumn = new StringDataFrameColumn("String", Enumerable.Range(0, rightCount).Select(x => "Right"));
DataFrameTests.Utils.cs (14)
19
DataFrameColumn
dataFrameColumn1 = new Int32DataFrameColumn("Int1", Enumerable.Range(0, length).Select(x => x));
20
DataFrameColumn
dataFrameColumn2 = new Int32DataFrameColumn("Int2", Enumerable.Range(10, length).Select(x => x));
96
DataFrameColumn
arrowStringColumn = CreateArrowStringColumn(length, withNulls);
105
DataFrameColumn
boolColumn = new BooleanDataFrameColumn("Bool", Enumerable.Range(0, length).Select(x => x % 2 == 0));
117
DataFrameColumn
boolColumn = new BooleanDataFrameColumn("Bool", Enumerable.Range(0, length).Select(x => x % 2 == 0));
129
DataFrameColumn
stringColumn = new StringDataFrameColumn("String", Enumerable.Range(0, length).Select(x => x.ToString()));
136
DataFrameColumn
charColumn = new CharDataFrameColumn("Char", Enumerable.Range(0, length).Select(x => (char)(x + 65)));
150
DataFrameColumn
dateTimeColumn = new DateTimeDataFrameColumn("DateTime", Enumerable.Range(0, length).Select(x => SampleDateTime.AddDays(x)));
175
var columnsList = new List<
DataFrameColumn
>
207
DataFrameColumn
baseColumn1 =
DataFrameColumn
.Create("Column1", Enumerable.Range(0, length).Select(x => (T1)Convert.ChangeType(x % 2 == 0 ? 0 : 1, typeof(T1))));
208
DataFrameColumn
baseColumn2 =
DataFrameColumn
.Create("Column2", Enumerable.Range(0, length).Select(x => (T2)Convert.ChangeType(x % 2 == 0 ? 0 : 1, typeof(T2))));
209
DataFrame dataFrame = new DataFrame(new List<
DataFrameColumn
> { baseColumn1, baseColumn2 });
StringDataFrameColumnTests.cs (4)
36
var
clonedColumn = stringColumn.Clone(new Int32DataFrameColumn("Map Indices", mapIndices));
52
var
clonedColumn = stringColumn.Clone(new Int32DataFrameColumn("Map Indices", mapIndices), true);
68
var
clonedColumn = stringColumn.Clone(new Int64DataFrameColumn("Map Indices", mapIndices));
84
var
clonedColumn = stringColumn.Clone(new Int64DataFrameColumn("Map Indices", mapIndices), true);
Microsoft.ML.Fairlearn (42)
AutoML\AutoMLExperimentExtension.cs (2)
64
var sensitiveFeature =
DataFrameColumn
.Create("group_id", trainData.GetColumn<string>(sensitiveColumnName));
65
var label =
DataFrameColumn
.Create("label", trainData.GetColumn<bool>(labelColumn));
Metrics\FairlearnMetricCatalog.cs (15)
100
result[_sensitiveFeatureColumn] =
DataFrameColumn
.Create(_sensitiveFeatureColumn, groupMetric.Keys.Select(x => x.ToString()));
101
result["AUC"] =
DataFrameColumn
.Create("AUC", groupMetric.Keys.Select(k => groupMetric[k].AreaUnderRocCurve)); //coloumn name?
102
result["Accuracy"] =
DataFrameColumn
.Create("Accuracy", groupMetric.Keys.Select(k => groupMetric[k].Accuracy));
103
result["PosPrec"] =
DataFrameColumn
.Create("PosPrec", groupMetric.Keys.Select(k => groupMetric[k].PositivePrecision));
104
result["PosRecall"] =
DataFrameColumn
.Create("PosRecall", groupMetric.Keys.Select(k => groupMetric[k].PositiveRecall));
105
result["NegPrec"] =
DataFrameColumn
.Create("NegPrec", groupMetric.Keys.Select(k => groupMetric[k].NegativePrecision));
106
result["NegRecall"] =
DataFrameColumn
.Create("NegRecall", groupMetric.Keys.Select(k => groupMetric[k].NegativeRecall));
107
result["F1Score"] =
DataFrameColumn
.Create("F1Score", groupMetric.Keys.Select(k => groupMetric[k].F1Score));
108
result["AreaUnderPrecisionRecallCurve"] =
DataFrameColumn
.Create("AreaUnderPrecisionRecallCurve", groupMetric.Keys.Select(k => groupMetric[k].AreaUnderPrecisionRecallCurve));
190
var data = new DataFrame(_eval.Schema.AsEnumerable().Select<DataViewSchema.Column,
DataFrameColumn
>(column =>
234
result[_sensitiveFeatureColumn] =
DataFrameColumn
.Create(_sensitiveFeatureColumn, groupMetric.Keys.Select(x => x.ToString()));
235
result["RSquared"] =
DataFrameColumn
.Create("RSquared", groupMetric.Keys.Select(k => groupMetric[k].RSquared));
236
result["RMS"] =
DataFrameColumn
.Create("RMS", groupMetric.Keys.Select(k => groupMetric[k].RootMeanSquaredError));
237
result["MSE"] =
DataFrameColumn
.Create("MSE", groupMetric.Keys.Select(k => groupMetric[k].MeanSquaredError));
238
result["MAE"] =
DataFrameColumn
.Create("MAE", groupMetric.Keys.Select(k => groupMetric[k].MeanAbsoluteError));
Reductions\GridSearchTrialRunner.cs (9)
73
df["sign"] =
DataFrameColumn
.Create("sign", lambdasValue.Select(x => x.sign));
74
df["group_id"] =
DataFrameColumn
.Create("group_id", lambdasValue.Select(x => x.e));
75
df["value"] =
DataFrameColumn
.Create("value", lambdasValue.Select(x => x.value));
76
_moment.LoadData(trainDataset,
DataFrameColumn
.Create("y", trainDataset.GetColumn<bool>(this._labelColumn)),
DataFrameColumn
.Create("group_id", trainDataset.GetColumn<string>(this._sensitiveColumn)));
77
var
signWeightColumn = _moment.SignedWeights(df);
84
var column =
DataFrameColumn
.Create<float>("pred", predictedLabel);
86
_moment.LoadData(validateDataset,
DataFrameColumn
.Create("y", eval.GetColumn<bool>(this._labelColumn)),
DataFrameColumn
.Create("group_id", validateDataset.GetColumn<string>(this._sensitiveColumn)));
Reductions\Moment.cs (6)
24
protected
DataFrameColumn
Y; //maybe lowercase this?
31
public
DataFrameColumn
SensitiveFeatureColumn { get => Tags["group_id"]; }
44
public virtual void LoadData(IDataView features,
DataFrameColumn
label, StringDataFrameColumn sensitiveFeature)
56
var sensitiveFeature =
DataFrameColumn
.Create("group_id", trainData.GetColumn<string>(sensitiveColumnName));
57
var labelColumn =
DataFrameColumn
.Create("label", trainData.GetColumn<bool>(label));
72
public abstract
DataFrameColumn
SignedWeights(DataFrame lambdaVec);
Reductions\UtilityParity.cs (10)
31
public
DataFrameColumn
ProbGroupEvent { get; protected set; }
67
public override void LoadData(IDataView x,
DataFrameColumn
y, StringDataFrameColumn sensitiveFeature)//, StringDataFrameColumn events = null, StringDataFrameColumn utilities = null)
98
var
expectGroupEvent = Tags.GroupBy("group_id").Mean("pred").OrderBy(("group_id"))["pred"];
99
var
upperBoundDiff = _ratio * expectGroupEvent - expectEvent;
100
var
lowerBoundDiff = -1.0 /*to add a negative sign*/ * expectGroupEvent + _ratio * expectEvent;
112
var
groupID = Tags.GroupBy("group_id").Mean("pred").OrderBy("group_id")["group_id"];
135
public override
DataFrameColumn
SignedWeights(DataFrame lambdaVec)
144
var
lambdaGroupEvent = (_ratio * gPos["value"] - gNeg["value"]) / ProbGroupEvent;
146
DataFrameColumn
adjust = lambdaEvent - lambdaGroupEvent;
162
DataFrameColumn
signedWeights = new PrimitiveDataFrameColumn<float>("signedWeight", signedWeightsFloat);
Microsoft.ML.Fairlearn.Tests (7)
GridSearchTest.cs (7)
39
df["X"] =
DataFrameColumn
.Create("X", new[] { 0f, 1, 2, 3, 4, 5, 6, 7, 8, 9 });
40
df["y_true"] =
DataFrameColumn
.Create("y_true", new[] { true, true, true, true, true, true, true, false, false, false });
41
df["y_pred"] =
DataFrameColumn
.Create("y_pred", new[] { true, true, true, true, false, false, false, true, false, false });
42
df["sensitiveFeature"] =
DataFrameColumn
.Create("sensitiveFeature", new[] { "a", "b", "a", "a", "b", "a", "b", "b", "a", "b" });
63
df["score_feature"] =
DataFrameColumn
.Create("score_feature", score_feature);
64
df["y"] =
DataFrameColumn
.Create("y", new[] {
71
df["sensitiveFeature"] =
DataFrameColumn
.Create("sensitiveFeature", new[] { "2", "2", "2", "2", "2", "2", "2", "2", "2", "2", "2", "2", "2", "2", "2", "2", "2", "2", "2", "2", "2", "2", "2", "2", "2", "2", "2", "2", "2", "2", "2", "3", "3", "3", "3", "3", "3", "3", "3", "3", "3", "3", "3", "3", "3", "3", "3", "3", "3", "3", "3", "3" });