eteeselink / datatable Goto Github PK
View Code? Open in Web Editor NEWThis project forked from mikestall/datatable
Class library for working with tabular data, especially CSV files
License: Apache License 2.0
This project forked from mikestall/datatable
Class library for working with tabular data, especially CSV files
License: Apache License 2.0
Hello! C# project for reading and writing CSVs. Libaries for easy reading, writing, and manipulation of CSV files. Handles linq, creating tables from IEnumerable<T>, dictionaries, in-memory mutable tables, streaming through large tables. It's an easier data table than System.Data.DataTable. This was extremely handy in a few projects. So I thought I'd put it up on GitHub and polish it up. A few quick examples: // Download as CsvTools from Nuget to include in your C# project. using DataAccess; var dt = DataTable.New.ReadCsv(filename); // load a CSV from disk // Linq against the rows var y = from row in dt.Rows where row["N"] == "3" select row["NSquared"]; // Linq with strongly-typed parsing, using RowAs<T>() method class Entry { public int N { get; set; } public int NSquared { get; set; } } int y = (from row in dt.RowsAs<Entry>() where row.N == 3 select row.NSquared).First(); // Create a table around an IEnumerable and then save back as a CSV var x = from i in Enumerable.Range(1, 5) select new { N = i, NSquared = i * i }; DataTable dt = DataTable.New.FromEnumerable(x); dt.SaveToStream(Console.Out); // write back out as a CSV Also includes support for reading an excel file (.xlsx) var dt = DataTable.New.ReadExcel(@"c:\temp\foo.xlsx"); var names = from row in dt.Rows where int.Parse(row["age"]) > 10 select row["Name"]; See here for more about reading excel: http://blogs.msdn.com/b/jmstall/archive/2012/04/24/excel-on-azure.aspx
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.