Attached are two data analysis related classes that I wrote for analyzing data within Reinteract. Both should be placed in the lib directory.
The DataSet? class supplies some basic data analysis functions. It allows you to load a CSV file, pull out rows and columns, pivot the data, filter the data, and add columns that are populated with data by running a function on the other data in the row.
The retable.py contains a CustomResult? derived class called TableResult? that allows DataSet? objects to be printed in nice GTK TreeView? tables. To do this you just pass any DataSet? instance to the table() function defined in retable.py.