OpenSesame
Rapunzel Code Editor
DataMatrix
Support forum
Python Tutorials
MindProbe
Python videos

DataMatrix

DataMatrix is an intuitive Python library for working with column-based and continuous data.

Features

Example

from datamatrix import DataMatrix
# Four philosophers with their names, fields, and genders
dm = DataMatrix(length=4)
dm.name = 'Ibn al-Haytam', 'Hypatia', 'Popper', 'de Beauvoir'
dm.field = 'Optics', 'Mathematics', 'Science', 'Existentialism'
dm.gender = 'M', 'F', 'M', 'F'
print('Philosophers:')
print(dm)
# Select only women existentialists
dm = (dm.gender == 'F') & (dm.field == 'Existentialism')
print('Women Existentialists:')
print(dm)

Output:

Philosophers:
+---+----------------+--------+---------------+
| # |     field      | gender |      name     |
+---+----------------+--------+---------------+
| 0 |     Optics     |   M    | Ibn al-Haytam |
| 1 |  Mathematics   |   F    |    Hypatia    |
| 2 |    Science     |   M    |     Popper    |
| 3 | Existentialism |   F    |  de Beauvoir  |
+---+----------------+--------+---------------+
Women Existentialists:
+---+----------------+--------+-------------+
| # |     field      | gender |     name    |
+---+----------------+--------+-------------+
| 3 | Existentialism |   F    | de Beauvoir |
+---+----------------+--------+-------------+