| 1 |
DataMatrix - a Pythonic implementation of R's data.frame |
| 2 |
(C) 2008 Luca Beltrame |
| 3 |
(C) 2008 Giovanni Marco Dall'Olio |
| 4 |
|
| 5 |
Contents |
| 6 |
|
| 7 |
1. License |
| 8 |
|
| 9 |
------------------------------------------------------------------------------ |
| 10 |
1. License |
| 11 |
------------------------------------------------------------------------------ |
| 12 |
|
| 13 |
This program is distributed under the terms of the GNU General Public License |
| 14 |
(GPL), version 2, or (at your option), any later version. |
| 15 |
This means that you can freely modify, copy and distribute |
| 16 |
the program, under the terms of said license. The COPYING file gives a good |
| 17 |
overview of what you can and can't do. |
| 18 |
|
| 19 |
Although we hope that this program will be useful, but it is without ANY |
| 20 |
WARRANTY, without even the implied warranty of MERCHANTABILITY or FITNESS FOR |
| 21 |
A PARTICULAR PURPOSE. |
| 22 |
|
| 23 |
------------------------------------------------------------------------------ |
| 24 |
2. Description |
| 25 |
------------------------------------------------------------------------------ |
| 26 |
|
| 27 |
DataMatrix is a Python module that tries to emulate the behavior of the |
| 28 |
"data.frame" data structure of the R programming language. Data.frames are |
| 29 |
essentially tables that can be queried either by row or columns, or, in the |
| 30 |
presence of a header, even by column names. |
| 31 |
|
| 32 |
DataMatrix emulates this behavior by reading a text file (or file-like object) |
| 33 |
into a dictionary which in turn contains lists (the columns of the table). |
| 34 |
For each row in the original text file, the columns contain a two item tuple, |
| 35 |
whose first item is the "row name" and the second the actual value for that |
| 36 |
row and column. |
| 37 |
|
| 38 |
Row names are a way to identify a row precisely (R uses it because some of its |
| 39 |
operations return the names of the rows rather than their values) and are either |
| 40 |
read from a specific column or a progressive numeric value otherwise. |
| 41 |
|
| 42 |
DataMatrix objects can be queried with a dictionary-like syntax (e.g., |
| 43 |
matrix["column name"]), or by other methods. |
| 44 |
|
| 45 |
Detailed documentation is available in the HTML and PDF manuals, which can be |
| 46 |
found in PREFIX/share/doc/datamatrix (Linux) or C:\Python\Data\datamatrix |
| 47 |
(Windows). |