Skip to content

Latest commit

 

History

History
50 lines (32 loc) · 903 Bytes

README.rst

File metadata and controls

50 lines (32 loc) · 903 Bytes

SubFrame

DataFrame-friendly jQuery Plugins for Jupyter Notebook:

Installation

To install subframe:

$ git clone --recursive git@github.com:joshbode/subframe.git
$ cd subframe
$ pip install .

To install subframe in development (editable) mode:

$ pip install -e .

Usage

In [1]: from subframe import DataTable, PivotTable
        import subframe
        subframe.plugins.enable()

In [2]: import pandas

        d = pandas.DataFrame({
            'x': [1, 1, 1, 2, 3],
            'a': [1, 2, 2, 1, 3],
            'b': [23.534, 234.4, 27654.43, 2534.6, 342]
        })

In [3]: DataTable(d)
Out[3]: ...

In [4]: PivotTable(d)
Out[4]: ...