Python videos

# DataMatrix

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

## Features

• Requires only the Python standard libraries (but you can use `numpy` to improve performance)
• Great support for functional programming, including advanced memoization (caching)
• Mix two-dimensional (series) and one-dimensional data in a single data structure
• Compatible with your favorite tools for numeric computation:
• `seaborn` for plotting
• `statsmodels` for statistics
• Convert to and from `pandas.DataFrame`
• Looks pretty inside a Jupyter Notebook

## 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 |
+---+----------------+--------+-------------+
```