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