Base:
method
Max
Microsoft.Data.Analysis.DataFrameColumn.Max()
28 references to Max
Microsoft.Data.Analysis (1)
PrimitiveDataFrameColumn.cs (1)
760
max = (float)Convert.ChangeType(
Max
(), typeof(float));
Microsoft.Data.Analysis.Tests (27)
DataFrameTests.Computations.cs (15)
355
Assert.Equal(4, column.
Max
());
378
Assert.Null(column.
Max
());
387
Assert.Null(column.
Max
());
404
Assert.Equal(new DateTime(2023, 1, 1), dateTimeColumn.
Max
());
437
Assert.Equal((byte)byteColumn.
Max
(), range.Select(x => (byte)x).Max());
439
Assert.Equal((decimal)decimalColumn.
Max
(), (decimal)max);
440
Assert.Equal((double)doubleColumn.
Max
(), (double)max);
441
Assert.Equal((float)floatColumn.
Max
(), (float)max);
442
Assert.Equal((int)intColumn.
Max
(), (int)max);
443
Assert.Equal((long)longColumn.
Max
(), (long)max);
444
Assert.Equal((sbyte)sbyteColumn.
Max
(), (sbyte)max);
445
Assert.Equal((short)shortColumn.
Max
(), (short)max);
448
Assert.Equal((uint)uintColumn.
Max
(), range.Select(x => (uint)x).Max());
451
Assert.Equal((ulong)ulongColumn.
Max
(), range.Select(x => (ulong)x).Max());
454
Assert.Equal((ushort)ushortColumn.
Max
(), range.Select(x => (ushort)x).Max());
PrimitiveDataFrameColumnComputationsTests.cs (12)
39
Assert.Equal(Enumerable.Max(Int32Values), Convert.ToInt32(column.
Max
()));
49
Assert.Equal(Enumerable.Max(Int32Values), Convert.ToInt32(column.
Max
()));
59
Assert.Equal(Enumerable.Max(Int32Values), Convert.ToInt32(column.
Max
()));
69
Assert.Equal(Enumerable.Max(Int32Values), Convert.ToInt32(column.
Max
()));
79
Assert.Equal(Enumerable.Max(Int32Values), Convert.ToInt32(column.
Max
()));
89
Assert.Equal(Enumerable.Max(Int32Values), Convert.ToInt32(column.
Max
()));
99
Assert.Equal(Enumerable.Max(Int32Values), Convert.ToInt32(column.
Max
()));
109
Assert.Equal(Enumerable.Max(Int32Values), Convert.ToInt32(column.
Max
()));
119
Assert.Equal(Enumerable.Max(Int32Values), Convert.ToInt32(column.
Max
()));
129
Assert.Equal(Enumerable.Max(Int32Values), Convert.ToInt32(column.
Max
()));
139
Assert.Equal(Enumerable.Max(Int32Values), Convert.ToInt32(column.
Max
()));
149
Assert.Equal(Enumerable.Max(Int32Values), Convert.ToInt32(column.
Max
()));