On May 18, 12:29 am, mhampton <hampto...@gmail.com> wrote:
> So I have started a file basic_stats.py in the stats directory, with a
> ridiculously simple start:...
I've thought about this about a year ago but had no time to do
anything beyond thinking. I very strongly suggest to introduce a class
for storing data ("DataStore")!
look here how R is doing things:
http://cran.r-project.org/doc/manuals/R-data.html
i.e. most of the time data comes in columns, and each column has a
*name* and a special *type* (double, category [like an enum], ...).
compare this to a matrix or vector in sage, where you also have to
specify the type of entries. here we need to specify the type of a
column. then, using data['column'] we should be able to extract a
column, a set of clumns and much more (selecting subsets, merging data
where columns have the same entry, ...).
I think that would be very useful!
step two is to write methods for input and output: reading from/to
csv, to/from R data.frame's, xls, ods, google docs...
additionally, dealing with missing values, ... maybe even some ajax
web-form for the notebook, where you can enter data with
validation, ...
harald
--~--~---------~--~----~------------~-------~--~----~
To post to this group, send email to sage-devel@googlegroups.com
To unsubscribe from this group, send email to
sage-devel-unsubscr...@googlegroups.com
For more options, visit this group at http://groups.google.com/group/sage-devel
URLs: http://www.sagemath.org
-~----------~----~----~----~------~----~------~--~---