Deedle icon indicating copy to clipboard operation
Deedle copied to clipboard

Output CSV/TSV & Serialization in general

Open tpetricek opened this issue 12 years ago • 2 comments

Support serializing data frames & series and writing them to CSV/TSV.

tpetricek avatar Sep 21 '13 03:09 tpetricek

It would be nice to have at least binary serialization with Serializable attribute. For now I am thinking about some extension methods in a dependent library where I could make conversion to and from some System.Collection.Generic structure (like SortedList<, SortedList<, _>>) and to serialize a SCG structure to a string (so I will be able to keep signatures of the extension methods when DataFrame will eventually implement serialization) or to use SCG structures directly as a part my DTOs.

However, it would be very nice to be able to use Series and Dataframe directly as a part of WCF/ServiceStack DTOs, i.e. to use DataContract serialization.

buybackoff avatar Oct 15 '13 11:10 buybackoff

I already added df.SaveCsv method (which supports TSV too), so that part of the issue should be solved (though there is a lot of room for improvements).

As for binary serialization, I agree this needs to be done. I was thinking that this could use FsPickler, but I'm not sure how well that could be integrated with standard .NET things (WCF/ServiceStack/Serializable)...

tpetricek avatar Oct 15 '13 14:10 tpetricek