Created
October 28, 2014 02:36
-
-
Save sudipto80/f307ed836b57d9bdce3e to your computer and use it in GitHub Desktop.
Squirrel Example : Iris dataset Aggregation
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Table iris = DataAcquisition.LoadCSV(@"iris.csv"); | |
StringBuilder builder = new StringBuilder(); | |
builder.AppendLine("<html>"); | |
builder.AppendLine("<h2>Range</h2>"); | |
builder.AppendLine(iris.Aggregate("Name", AggregationMethod.Range).ToHTMLTable()); | |
builder.AppendLine("<h2>Average</h2>"); | |
builder.AppendLine(iris.Aggregate("Name", AggregationMethod.Average).ToHTMLTable()); | |
builder.AppendLine("<h2>Max</h2>"); | |
builder.AppendLine(iris.Aggregate("Name", AggregationMethod.Max).ToHTMLTable()); | |
builder.AppendLine("<h2>Min</h2>"); | |
builder.AppendLine(iris.Aggregate("Name", AggregationMethod.Min).ToHTMLTable()); | |
builder.AppendLine("</html>"); | |
StreamWriter writer = new StreamWriter("temp.html"); | |
writer.WriteLine(builder.ToString()); | |
writer.Close(); | |
System.Diagnostics.Process.Start("temp.html"); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment