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)
357
Assert.Equal(4, column.
Max
());
380
Assert.Null(column.
Max
());
389
Assert.Null(column.
Max
());
406
Assert.Equal(new DateTime(2023, 1, 1), dateTimeColumn.
Max
());
439
Assert.Equal((byte)byteColumn.
Max
(), range.Select(x => (byte)x).Max());
441
Assert.Equal((decimal)decimalColumn.
Max
(), (decimal)max);
442
Assert.Equal((double)doubleColumn.
Max
(), (double)max);
443
Assert.Equal((float)floatColumn.
Max
(), (float)max);
444
Assert.Equal((int)intColumn.
Max
(), (int)max);
445
Assert.Equal((long)longColumn.
Max
(), (long)max);
446
Assert.Equal((sbyte)sbyteColumn.
Max
(), (sbyte)max);
447
Assert.Equal((short)shortColumn.
Max
(), (short)max);
450
Assert.Equal((uint)uintColumn.
Max
(), range.Select(x => (uint)x).Max());
453
Assert.Equal((ulong)ulongColumn.
Max
(), range.Select(x => (ulong)x).Max());
456
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
()));